Electric energy meter parameter verification method and its device, computer equipment, storage medium
By comparing and analyzing the data files and template files of the electricity meter and generating calibration information, the problem of difficult detection of errors in setting items during the electricity meter production process is solved, and the accuracy and efficiency of detection are improved.
Patent Information
- Application Number
- CN202210539751.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-18
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2042-05-18
AI Technical Summary
During the production process of existing electricity meter, errors in setting items are difficult to detect, resulting in unqualified electricity meter produced, especially when there are fewer check items than set items.
Parameter comparison is performed by obtaining the data file of the current electricity meter and the template file of the first electricity meter. If the comparison results do not match, parse the setting item parameters in the data file, find their corresponding functions, and generate verification information.
The accuracy and efficiency of power meter detection are improved, and missing items and errors can be avoided. Even if there are fewer check items than test items, errors in the setting item parameters of the power meter can be detected.
Smart Images

Figure CN115079079B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electricity meter calibration, and particularly to a method and device for verifying electricity meter parameters, a computer device, and a storage medium. Background Art
[0002] The production process of electricity meters is complex and involves multiple links. In each link, setting item parameters of the electricity meter are generated using special computer software according to production requirements, and a verification item is set in the last link to verify the setting item parameters of the electricity meter. When the number of verification items is less than the number of setting items, errors in the setting item parameters cannot be detected, resulting in unqualified electricity meters produced. Summary of the Invention
[0003] The main purpose of the embodiments of the present application is to propose a method and device for verifying electricity meter parameters, a computer device, and a storage medium, which can improve the accuracy and efficiency of electricity meter detection.
[0004] To achieve the above object, a first aspect of the embodiments of the present application proposes a method for verifying electricity meter parameters, the method comprising:
[0005] Obtain a data file of the current electricity meter, the data file including first setting item parameters;
[0006] Obtain a template file of the first-piece electricity meter corresponding to the current electricity meter, the template file including second setting item parameters;
[0007] Compare the first setting item parameters in the data file with the second setting item parameters in the template file to obtain a comparison result;
[0008] If the comparison result is that the first setting item parameters do not match the second setting item parameters, then parse the first setting item parameters in the data file to obtain the corresponding file number, file offset, and file length, and look up the function of the setting item parameter corresponding to the first setting item parameter from a preset mapping table according to the file number, the file offset, and the file length, and generate verification information according to the function of the setting item parameter.
[0009] In some embodiments, after comparing the first setting item parameters in the data file with the second setting item parameters in the template file to obtain a comparison result, the method for verifying electricity meter parameters further comprises:
[0010] If the comparison result is that the first setting item parameters match the second setting item parameters, then verify the first setting item parameters in the data file according to a preset verification algorithm.
[0011] In some embodiments, obtaining the data file of the current electricity meter includes:
[0012] Obtaining a requirement file;
[0013] In response to an operation of selecting first setting item parameters according to the requirement file, generating an electricity meter protocol with the first setting item parameters and sending the electricity meter protocol to the current electricity meter;
[0014] Obtaining the electricity meter protocol and using the electricity meter protocol as the data file of the current electricity meter.
[0015] In some embodiments, the step of, in response to an operation of selecting first setting item parameters according to the requirement file, generating an electricity meter protocol with the first setting item parameters and sending the electricity meter protocol to the current electricity meter includes:
[0016] Converting the requirement file into an intermediate file according to a preset document format;
[0017] In response to an operation of selecting first setting item parameters according to the intermediate file, generating an electricity meter protocol with the first setting item parameters and sending the electricity meter protocol to the current electricity meter.
[0018] In some embodiments, before obtaining the template file of the first-piece electricity meter corresponding to the current electricity meter, the electricity meter parameter verification method further includes:
[0019] Obtaining an initial data file, where the initial data file is the data file of the first-piece electricity meter corresponding to the current electricity meter;
[0020] Binding the initial data file and the scheme number corresponding to the initial data file to obtain a template file;
[0021] Storing the template file in a file database;
[0022] The step of obtaining the template file of the first-piece electricity meter corresponding to the current electricity meter includes:
[0023] Obtaining the template file from the file database.
[0024] In some embodiments, the step of obtaining the initial data file includes:
[0025] Obtaining the initial data file from the first-piece electricity meter according to the 485 communication method or the chip pin reverse flashing method.
[0026] In some embodiments, the mapping table is a mapping relationship between the storage location of the first setting item parameter in the data file and the function of the setting item parameter. The finding of the function of the setting item parameter corresponding to the first setting item parameter from the preset mapping table according to the file number, the file offset, and the file length includes:
[0027] Obtaining the storage location of the first setting item parameter in the data file according to the file number, the file offset, and the file length;
[0028] Finding the function of the setting item parameter corresponding to the first setting item parameter from the preset mapping table according to the storage location.
[0029] A second aspect of the embodiments of the present application provides an electric energy meter parameter verification device, which includes:
[0030] A first acquisition module, configured to acquire a data file of a current electric energy meter, where the data file includes a first setting item parameter;
[0031] A second acquisition module, configured to acquire a template file of a first-piece electric energy meter corresponding to the current electric energy meter, where the template file includes a second setting item parameter;
[0032] A parameter comparison module, configured to compare the first setting item parameter in the data file with the second setting item parameter in the template file to obtain a comparison result;
[0033] A parameter verification module, configured to, if the comparison result is that the first setting item parameter is inconsistent with the second setting item parameter, parse the first setting item parameter in the data file to obtain a corresponding file number, file offset, and file length, find the function of the setting item parameter corresponding to the first setting item parameter from the preset mapping table according to the file number, the file offset, and the file length, and generate verification information according to the function of the setting item parameter.
[0034] A third aspect of the embodiments of the present application provides a computer device, which includes a memory and a processor. Among them, a program is stored in the memory, and when the program is executed by the processor, the processor is configured to execute the method according to any one of the first aspect embodiments of the present application.
[0035] A fourth aspect of the embodiments of the present application provides a storage medium, which is a computer-readable storage medium. The storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the method according to any one of the first aspect embodiments of the present application.
[0036] The method and device for verifying the parameters of an electric energy meter, computer equipment, and storage medium proposed in the embodiments of the present application obtain the data file of the current electric energy meter. The data file includes the first set of item parameters, obtain the template file of the first-piece electric energy meter corresponding to the current electric energy meter. The template file includes the second set of item parameters, compare the first set of item parameters in the data file with the second set of item parameters in the template file to obtain a comparison result. If the comparison result is that the first set of item parameters does not match the second set of item parameters, then parse the first set of item parameters in the data file to obtain the corresponding file number, file offset, and file length, and find the function of the set of item parameters corresponding to the first set of item parameters from the preset mapping table according to the file number, file offset, and file length, and generate verification information according to the function of the set of item parameters. The embodiments of the present application verify each set of item parameters of the electric energy meter through the template file, which can avoid missing items and incorrect items. Even when the number of items to be checked is less than the number of test items, it can also detect errors in the set of item parameters of the electric energy meter, improving the accuracy and efficiency of electric energy meter detection. Description of the Drawings
[0037] Figure 1 is the first flowchart of the method for verifying the parameters of an electric energy meter provided by the embodiments of the present application;
[0038] Figure 2 is Figure 1 the flowchart of the specific method of step S110 in
[0039] Figure 3 is Figure 2 the flowchart of the specific method of step S220 in
[0040] Figure 4 is the second flowchart of the method for verifying the parameters of an electric energy meter provided by the embodiments of the present application;
[0041] Figure 5 is the module structure diagram of the device for verifying the parameters of an electric energy meter provided by the embodiments of the present application. Detailed Embodiments
[0042] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] It should be noted that although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order from the module division in the device or the order in the flowchart. Terms such as "first" and "second" in the description, claims, and the above drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this invention belongs. The terms used herein are for the purpose of describing embodiments of the present invention only and are not intended to limit the present invention.
[0045] Before leaving the factory, it is necessary to set parameters for the electricity meter to ensure its normal use. The set item parameters include basic parameters (rated voltage, rated current, basic current, maximum current, phase error adjustment amount, meter measurement direction), demand parameters, settlement date parameters, freeze parameters, load curve parameters, alarm parameters, rate parameters, display parameters, variable parameters, control parameters, ESAM parameters, etc. Since there are many parameters to be set, if each parameter is set manually, it will take a lot of time. To improve the production efficiency of the electricity meter, in the five major links of FCT, withstand voltage, pre-installation meter adjustment, meter inspection, and post-installation setting verification in the production of the electricity meter, according to the needs of production, detection, and setting, computer special software is used to generate set item parameters and send the set item parameters to the electricity meter. Due to the complex production process of the electricity meter, which involves multiple links in the middle, in each link, computer special software is used to generate the set item parameters of the electricity meter according to production requirements, and in the last link, the set item parameters of the electricity meter are verified by the setting verification item. When the verification item is less than the set item, the error in the set item parameters cannot be detected, resulting in unqualified electricity meters produced.
[0046] Based on this, the main purpose of the embodiments of the present application is to propose a method for verifying electricity meter parameters. By comparing the first set item parameters of the current electricity meter with the second set item parameters of the first-piece electricity meter, a comparison result is obtained. If the comparison result shows that the first set item parameters do not match the second set item parameters, verification information is generated. According to the verification information, the set item parameters with incorrect settings can be obtained, avoiding missing items and incorrect items. Even when the verification item is less than the test item, the error in the set item parameters of the electricity meter can be detected, improving the accuracy of electricity meter detection.
[0047] The method for verifying electricity meter parameters, computer device, and storage medium provided by the embodiments of the present application will be specifically described through the following embodiments. First, the method for verifying electricity meter parameters in the embodiments of the present application will be described.
[0048] Refer to Figure 1 , according to the method for verifying electricity meter parameters in the first aspect embodiment of the present application, the method for verifying electricity meter parameters includes but is not limited to steps S110 to S140.
[0049] S110, obtain the data file of the current electricity meter;
[0050] S120, obtain the template file of the first-piece electric energy meter corresponding to the current electric energy meter;
[0051] S130, compare the first set of parameter in the data file with the second set of parameter in the template file to obtain a comparison result;
[0052] S140, if the comparison result shows that the first set of parameter does not match the second set of parameter, then analyze the first set of parameter in the data file to obtain the corresponding file number, file offset, and file length, and look up the function of the set of parameter corresponding to the first set of parameter from a preset mapping table according to the file number, file offset, and file length, and generate verification information based on the function of the set of parameter.
[0053] In step S110, obtain the data file of the current electric energy meter, where the data file is stored in the memory of the current electric energy meter, and the memory can be an EEPROM. The EEPROM is an electrically erasable programmable read-only memory, which is convenient for modifying the content of the data file in the memory when there is a setting error in the content of the data file. The data file includes the first set of parameter, where the first set of parameter is the set of parameter of the current electric energy meter and is stored in the data file in binary form, that is, the first set of parameter is stored in the data file in the form of 0 or 1.
[0054] In step S120, obtain the template file of the first-piece electric energy meter corresponding to the current electric energy meter, where the template file includes the second set of parameter, and the second set of parameter is the set of parameter of the first-piece electric energy meter. It can be understood that the template file is stored in the memory of the first-piece electric energy meter, and the second set of parameter is stored in the template file in binary form.
[0055] In step S130, compare the first set of parameter in the data file with the second set of parameter in the template file item by item to avoid missing items when the set of parameter of the current electric energy meter changes compared with the first-piece electric energy meter, resulting in failure to detect errors in the set of parameter of the current electric energy meter.
[0056] In step S140, if the comparison result shows that the first set item parameter does not match the second set item parameter, it indicates that the set item parameter of the current electricity meter has changed compared with that of the first-piece electricity meter, that is, the first set item parameter is incorrect. Since the first set item parameter is a binary parameter, it is impossible to directly obtain the actual function of the set item parameter from the binary parameter. For example, according to the binary string "0100", it is impossible to know whether its actual set item parameter function is rated voltage or rated current. Therefore, it is necessary to parse the first set item parameter of the data file to determine the set item parameter function corresponding to the first set item parameter. By parsing the first set item parameter, the corresponding file number, file offset, and file length are obtained. Since the mapping table is the mapping relationship between the storage location of the first set item parameter in the data file and the set item parameter function, the storage location of the first set item parameter in the data file can be obtained according to the file number, file offset, and file length. The set item parameter function corresponding to the first set item parameter is found from the mapping table according to the storage location, and the verification information is generated according to the test item parameter function. The verification information is used to prompt that the set item parameter function corresponding to the first set item parameter is set incorrectly, such as the rated current setting is incorrect, etc. It can be understood that the file number is a file descriptor used to identify the file. The file pointer points to FILE, the file descriptor indexes the file pointer, the corresponding file pointer is obtained according to the file descriptor, and the storage location of the first set item parameter is obtained according to the file length and file offset of the file object pointed to by the file pointer.
[0057] It should be noted that to meet the production requirements of electricity meters, some set item parameters of the electricity meter do not need to be set. When the set item parameter is not set, if it is checked, it will not only waste time but also cause parameter misjudgment. If the comparison result shows that the first set item parameter does not match the second set item parameter, the subsequent verification process will not be carried out to avoid wasting time and parameter misjudgment.
[0058] It should be noted that if the comparison result shows that the first set item parameter matches the second set item parameter, the first set item parameter in the data file is verified according to the preset verification algorithm, that is, the first set item parameter is secondarily verified by setting verification items. Through double verification, the accuracy rate of the electricity meter parameter setting is improved.
[0059] The method for verifying the parameters of an electric energy meter proposed in the embodiments of the present application obtains the data file of the current electric energy meter. The data file includes the first set of item parameters, obtains the template file of the first-piece electric energy meter corresponding to the current electric energy meter. The template file includes the second set of item parameters, compares the first set of item parameters in the data file with the second set of item parameters in the template file to obtain a comparison result. If the comparison result is that the first set of item parameters does not match the second set of item parameters, then parse the first set of item parameters in the data file to obtain the corresponding file number, file offset, and file length, and find the function of the set of item parameters corresponding to the first set of item parameters from the preset mapping table according to the file number, file offset, and file length, and generate verification information according to the function of the set of item parameters. The embodiments of the present application verify each set of item parameters of the electric energy meter through the template file, which can avoid missing items and incorrect items. Even when the number of items to be checked is less than the number of test items, it can also detect errors in the set of item parameters of the electric energy meter, improving the accuracy and efficiency of electric energy meter detection.
[0060] In some embodiments, as Figure 2 shown, step S110 specifically includes but is not limited to steps S210 to S230.
[0061] S210, obtain the requirement file;
[0062] S220, in response to the operation of selecting the first set of item parameters according to the requirement file, generate an electric energy meter protocol with the first set of item parameters and send the electric energy meter protocol to the current electric energy meter;
[0063] S230, obtain the electric energy meter protocol and use the electric energy meter protocol as the data file of the current electric energy meter.
[0064] In step S210, obtain the requirement file of the electric energy meter from the user side, and the requirement file is in formats such as word and excel.
[0065] In step S220, obtain the new requirement file, modified requirement file, and function shielding file, update the requirement file according to the new requirement file, modified requirement file, and function shielding file to form a target requirement file, bind the order number corresponding to the user side and the target requirement file and upload them to the server, read the target requirement file according to the order number, in response to the operation of selecting the function of the set of item parameters corresponding to the target requirement according to the target requirement file, parse the function of the set of item parameters, generate the first set of item parameters, frame the first set of item parameters to generate an electric energy meter protocol, and send the electric energy meter protocol to the current electric energy meter, where the electric energy meter protocol is a binary message for communication, including the electric energy meter 645 protocol, electric energy meter 698 protocol, etc.
[0066] In some embodiments, as Figure 3As shown, step S220 specifically includes, but is not limited to, steps S310 to S320.
[0067] S310, convert the requirement file into an intermediate file according to a preset document format;
[0068] S320, in response to an operation of selecting the first setting item parameter according to the intermediate file, generate an electric energy meter protocol with the first setting item parameter and send the electric energy meter protocol to the current electric energy meter.
[0069] In steps S310 to S320, the preset document format can be xml format. Convert the requirement file into xml format to obtain an intermediate file. Update the requirement file according to the new requirement file, modified requirement file, and function shielding file to form a target requirement file, and convert the target requirement file into xml document format to obtain an intermediate file. In response to an operation of selecting the corresponding setting item parameter function according to the intermediate file, parse the setting item parameter function, generate the first setting item parameter, generate an electric energy meter protocol according to the first setting item parameter, and send the protocol to the current electric energy meter.
[0070] In some embodiments, as Figure 4 shown, before step S120, the electric energy meter parameter verification method specifically includes, but is not limited to, steps S410 to S430.
[0071] S410, obtain an initial data file;
[0072] S420, bind the initial data file and the project number corresponding to the initial data file to obtain a template file;
[0073] S430, store the template file in the file database;
[0074] In step S410, obtain an initial data file, where the initial data file is the data file of the first-piece electric energy meter corresponding to the current electric energy meter. It should be noted that the initial data file can be obtained from the first-piece electric energy meter through 485 communication, or can be obtained from the first-piece electric energy meter through chip pin reverse programming to improve the speed of obtaining the initial data file.
[0075] In step S420, if the requirement file is different, the setting item parameters of the electric energy meter are different. That is, the project number can be obtained through the order number. By obtaining the order number of the current electric energy meter, obtain the project number of the first-piece electric energy meter corresponding to the current electric energy meter according to the order number, and determine the template file according to the project number. Among them, the project number can distinguish different production methods of electric energy meters, that is, different setting item parameters. Bind the data file of the first-piece electric energy meter and the project number corresponding to the data file to obtain a template file.
[0076] In step S430, the template file is stored in the file database, and the template file is retrieved from the file database.
[0077] The following refers to Figures 1 to 4 A method for verifying power meter parameters according to an embodiment of the present invention will be described in detail with a specific embodiment. It should be understood that the following description is only an exemplary illustration and not a specific limitation of the invention.
[0078] Obtain the initial requirement file of the power meter from the first client, obtain the new requirement file, modified requirement file, and function shielding file obtained by the second client according to the initial requirement file, update the initial requirement file according to the new requirement file, modified requirement file, and function shielding file to obtain the target requirement file, bind the order number corresponding to the first client and the target requirement file and upload them to the server, read the target requirement file from the server according to the order number, in response to the operation of selecting the setting item parameter function corresponding to the target requirement according to the target requirement file, parse the setting item parameter function, generate the first setting item parameter, frame the first setting item parameter to generate a power meter protocol, and send the power meter protocol to the current power meter, obtain the data file of the current power meter, obtain the template file of the first-piece power meter corresponding to the current power meter, compare the first setting item parameter in the data file with the second setting item parameter in the template file to obtain a comparison result, if the comparison result is that the first setting item parameter does not match the second setting item parameter, then parse the first setting item parameter in the data file to obtain the corresponding file number, file offset, and file length, and look up the setting item parameter function corresponding to the first setting item parameter from a preset mapping table according to the file number, file offset, and file length, and generate verification information according to the setting item parameter function.
[0079] Wherein the first client is a client, and the second client is a R & D side. Since the electricity meter production process involves multiple programs and systems, it is difficult to detect parameter errors of the electricity meter. By reading the template files of the corresponding links one by one in the five major links of FCT, withstand voltage, pre-installation meter adjustment, meter inspection, and post-installation setting verification in the electricity meter production process, comparing the data file of the current link of the current electricity meter with the template file of the first-piece electricity meter, and obtaining the comparison results of the five links. If the comparison results of the five links are all that the first setting item parameter matches the second setting item parameter, it means that the setting item parameter is correct. By comparing all five links, the accuracy of the setting item parameters in the electricity meter can be improved.
[0080] An embodiment of the present application also provides a power meter parameter verification device, as Figure 5As shown, the above-mentioned electric energy meter parameter verification method can be implemented. The device includes a first acquisition module 510, a second acquisition module 520, a parameter comparison module 530, and a parameter verification module 540. The first acquisition module 510 is used to acquire the data file of the current electric energy meter, and the data file includes the first set item parameters; the second acquisition module 520 is used to acquire the template file of the first-piece electric energy meter corresponding to the current electric energy meter, and the template file includes the second set item parameters; the parameter comparison module 530 is used to compare the first set item parameters in the data file with the second set item parameters in the template file to obtain a comparison result; the parameter verification module 540 is used to, if the comparison result is that the first set item parameters are inconsistent with the second set item parameters, parse the first set item parameters in the data file to obtain the corresponding file number, file offset, and file length, and find out the set item parameter function corresponding to the first set item parameters from a preset mapping table according to the file number, file offset, and file length, and generate verification information according to the set item parameter function.
[0081] The electric energy meter parameter verification device in the embodiment of the present application is used to execute the electric energy meter parameter verification method in the above-mentioned embodiment, and its specific processing process is the same as that of the electric energy meter parameter verification method in the above-mentioned embodiment, and will not be elaborated here one by one.
[0082] The electric energy meter parameter verification device proposed in the embodiment of the present application acquires the data file of the current electric energy meter, the data file includes the first set item parameters, acquires the template file of the first-piece electric energy meter corresponding to the current electric energy meter, the template file includes the second set item parameters, compares the first set item parameters in the data file with the second set item parameters in the template file to obtain a comparison result, and if the comparison result is that the first set item parameters do not match the second set item parameters, parses the first set item parameters in the data file to obtain the corresponding file number, file offset, and file length, and finds out the set item parameter function corresponding to the first set item parameters from a preset mapping table according to the file number, file offset, and file length, and generates verification information according to the set item parameter function. The embodiment of the present application verifies each set item parameter of the electric energy meter through the template file, which can avoid missing items and wrong items. Even when the number of checked items is less than the number of test items, it can also detect errors in the set item parameters of the electric energy meter, improving the accuracy and efficiency of electric energy meter detection.
[0083] The embodiment of the present application also provides a computer device, including:
[0084] At least one processor, and,
[0085] A memory communicatively connected to at least one processor; wherein,
[0086] The memory stores instructions, which are executed by at least one processor so that when the at least one processor executes the instructions, the method according to any one of the embodiments of the first aspect of the present application is implemented.
[0087] The computer device includes: a processor, a memory, an input / output interface, a communication interface, and a bus.
[0088] The processor can be implemented in ways such as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0089] The memory can be implemented in forms such as a ROM (Read Only Memory), a static storage device, a dynamic storage device, or a RAM (Random Access Memory). The memory can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory and are called by the processor to execute the electric energy meter parameter verification method of the embodiments of the present application;
[0090] The input / output interface is used to implement information input and output;
[0091] The communication interface is used to implement communication interaction between this device and other devices, and can implement communication through a wired method (such as USB, network cable, etc.) or through a wireless method (such as a mobile network, WIFI, Bluetooth, etc.); and
[0092] The bus transmits information between various components of the device (such as the processor, the memory, the input / output interface, and the communication interface);
[0093] Among them, the processor, the memory, the input / output interface, and the communication interface are communicatively connected to each other inside the device through the bus.
[0094] The embodiments of the present application further provide a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute the electric energy meter parameter verification method of the embodiments of the present application.
[0095] A memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes a memory remotely located relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0096] The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0097] Those skilled in the art can understand that Figures 1 to 4 the technical solutions shown do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown, or combine certain steps, or different steps.
[0098] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0099] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in systems and devices, can be implemented as software, firmware, hardware, and appropriate combinations thereof.
[0100] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0101] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (item) of the following" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0102] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the devices or units can be in electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, the functional units in each embodiment of this application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0105] When the integrated unit is implemented in the form of a software functional unit 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 all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media that can store programs, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.
[0106] The preferred embodiments of the embodiments of this application have been described above with reference to the accompanying drawings, which does not limit the scope of rights of the embodiments of this application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of this application shall be within the scope of rights of the embodiments of this application.
Claims
1. A method for verifying the parameters of an electric energy meter, characterized in that, The method includes: Obtain the data file of the current electricity meter, where the data file includes the first set item parameters; Obtain the template file of the first-piece electricity meter corresponding to the current electricity meter, where the template file includes the second set item parameters; Compare the first set item parameters in the data file with the second set item parameters in the template file to obtain a comparison result; If the comparison result is that the first set item parameters do not match the second set item parameters, then parse the first set item parameters of the data file to obtain the corresponding file number, file offset, and file length, and look up the set item parameter function corresponding to the first set item parameters from a preset mapping table according to the file number, the file offset, and the file length, and generate verification information according to the set item parameter function.
2. The method for verifying the parameters of an electric energy meter according to claim 1, characterized in that, After the step of comparing the first set item parameters in the data file with the second set item parameters in the template file to obtain a comparison result, the electricity meter parameter verification method further includes: If the comparison result is that the first set item parameters match the second set item parameters, then verify the first set item parameters in the data file according to a preset verification algorithm.
3. The method for verifying the parameters of an electric energy meter according to claim 1, characterized in that, The step of obtaining the data file of the current electricity meter includes: Obtain a requirement file; In response to the operation of selecting the first set item parameters according to the requirement file, generate an electricity meter protocol with the first set item parameters and send the electricity meter protocol to the current electricity meter; Obtain the electricity meter protocol and use the electricity meter protocol as the data file of the current electricity meter.
4. The method for verifying the parameters of an electric energy meter according to claim 3, characterized in that, The step of, in response to the operation of selecting the first set item parameters according to the requirement file, generating an electricity meter protocol with the first set item parameters and sending the electricity meter protocol to the current electricity meter includes: Convert the requirement file into an intermediate file according to a preset document format; In response to the operation of selecting the first set item parameters according to the intermediate file, generate an electricity meter protocol with the first set item parameters and send the electricity meter protocol to the current electricity meter.
5. The method for verifying the parameters of an electric energy meter according to claim 1, characterized in that, Before the step of obtaining the template file of the first-piece electricity meter corresponding to the current electricity meter, the electricity meter parameter verification method further includes: Obtain an initial data file, where the initial data file is the data file of the first-piece electricity meter corresponding to the current electricity meter; Bind the initial data file and the corresponding solution number of the initial data file to obtain a template file; Store the template file in a file database; The step of obtaining the template file of the first-piece electricity meter corresponding to the current electricity meter includes: Obtain the template file from the file database.
6. The method for verifying the parameters of an electric energy meter according to claim 5, characterized in that, The step of obtaining the initial data file includes: Obtain the initial data file from the first-piece electricity meter according to the 485 communication method or the chip pin reverse burn-in method.
7. The method for verifying the parameters of an electric energy meter according to any one of claims 1 to 6, characterized in that, The mapping table is the mapping relationship between the storage location of the first set item parameters in the data file and the set item parameter function. The step of looking up the set item parameter function corresponding to the first set item parameters from a preset mapping table according to the file number, the file offset, and the file length includes: Obtain the storage location of the first setting item parameter in the data file according to the document number, the document offset, and the document length; Look up the function of the setting item parameter corresponding to the first setting item parameter from a preset mapping table according to the storage location.
8. An electric energy meter parameter verification device, characterized in that, The device includes: A first acquisition module, configured to acquire a data file of a current electric energy meter, where the data file includes a first setting item parameter; A second acquisition module, configured to acquire a template file of a first-piece electric energy meter corresponding to the current electric energy meter, where the template file includes a second setting item parameter; A parameter comparison module, configured to compare the first setting item parameter in the data file with the second setting item parameter in the template file to obtain a comparison result; A parameter verification module, configured to, if the comparison result is that the first setting item parameter is inconsistent with the second setting item parameter, parse the first setting item parameter in the data file to obtain a corresponding document number, document offset, and document length, look up the function of the setting item parameter corresponding to the first setting item parameter from a preset mapping table according to the document number, the document offset, and the document length, and generate verification information according to the function of the setting item parameter.
9. A computer device, characterized in that, The computer device includes a memory and a processor. Among them, a program is stored in the memory, and when the program is executed by the processor, the processor is used to execute: The method according to any one of claims 1 to 7.
10. A storage medium, the storage medium being a computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer is used to execute: The method according to any one of claims 1 to 7.
Citation Information
Patent Citations
System and method for verifying electric energy meter on site
CN102375136A
Calibration method, system and device of electric energy meter
CN110646759A