Ammeter parameter modification method and device, electronic equipment and storage medium

By performing dual authority authentication on the meter parameter modification instructions, combined with the meter parameter setting record and the device authority database, the problem of parameter tampering after the meter box is destroyed is solved, and the security protection and abnormal warning of the meter parameters are realized.

CN118608166APending Publication Date: 2024-09-06HEXING ELECTRICAL CO LTD +6
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410717046.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing electricity meter protection methods against electricity theft can still be tampered with after the meter box is maliciously damaged, causing economic losses and failing to provide timely warnings.

Method used

When receiving a modification command, the command data is queried, and the meter parameter setting record and the device permission database are combined for dual authority authentication to ensure that only authorized equipment and personnel can modify the meter parameters, and abnormal warning information is generated when illegal modification is attempted.

Benefits of technology

It effectively prevents meter parameters from being maliciously modified, promptly reminds backstage personnel of abnormal situations, protects meter parameters, and meets the need for safe and timely warnings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608166A
    Figure CN118608166A
Patent Text Reader

Abstract

The embodiment of the invention discloses an ammeter parameter modification method and device, electronic equipment and a storage medium. The method comprises the steps of judging a received modification instruction, analyzing instruction data in the modification instruction, determining a first permission in combination with an ammeter parameter setting record, then determining a second permission corresponding to instruction sending equipment data, and further, doubly judging whether to perform parameter modification on a target ammeter in combination with the first permission and the second permission. Through the above judgment and modification steps, even if a modification instruction is accessed after the electric meter box is maliciously damaged, the parameters of the electric meter box cannot be modified through authority authentication, and when it is detected that non-staff possibly attempt to perform abnormal modification, abnormal warning information is immediately generated and uploaded to the server terminal, so that the safety of the electric meter box is improved. Therefore, not only is the purpose of protecting the parameters of the electric meter box achieved, but also the requirement of timely warning when an abnormity occurs is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of instrument measurement and control technology, and in particular, to a method, device, electronic device and storage medium for modifying electric meter parameters. Background Art

[0002] In areas where electricity is underdeveloped, due to insufficient electricity resources, there will be malicious tampering of the internal data of the meter during actual electricity use, reducing the meter's electricity consumption and illegally stealing electricity, causing serious economic losses. Therefore, it is necessary to design a protection method to prevent the meter parameters from being modified at will in response to malicious modification of meter parameters. However, the existing anti-theft protection method for meters generally only designs a meter cover on the outside of the meter and seals it with lead. When the meter box is maliciously damaged by humans, the meter parameters can still be tampered with. The actual use of traditional methods is not ideal and will still cause certain economic losses. Summary of the invention

[0003] The embodiments of this specification provide a method, device, electronic device and storage medium for modifying electric meter parameters, and the technical solutions are as follows: In a first aspect, an embodiment of the present specification provides a method for modifying parameters of an electric meter, the method comprising: When a modification instruction for a target electric meter is received, querying instruction data corresponding to the modification instruction, wherein the instruction data includes instruction sending device data and modification data; When there is upgrade data in the instruction data, determining the first authority for modifying the instruction based on the meter parameter setting record and the upgrade data; Determine, based on a device permission database, a second permission corresponding to the instruction sending device data; After both the first authority and the second authority are authenticated, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

[0004] In a second aspect, a device for modifying electric meter parameters is provided, the device comprising: A query module, configured to query instruction data corresponding to a modification instruction when receiving a modification instruction for a target electric meter, wherein the instruction data includes instruction sending device data and modification data; An upgrade module, configured to determine the first permission of the modification instruction based on the meter parameter setting record and the upgrade data when the instruction data contains the upgrade data; A determination module, configured to determine the second permission corresponding to the instruction sending device data based on a device permission database; A modification module is used to modify and upgrade parameters of the target electric meter based on the modification data and upgrade data after both the first authority and the second authority are authenticated.

[0005] In a third aspect, an electronic device is provided, including a device processor and a memory; The device processor is connected to the memory; The memory is used to store executable program code; The device processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the method provided in the first aspect or any possible implementation manner of the first aspect.

[0006] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer-readable storage medium stores instructions, which, when the instructions are executed on a computer or a device processor, cause the computer or the device processor to execute the method provided in the first aspect or any possible implementation of the first aspect.

[0007] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: In one or more embodiments of the present specification, by judging the received modification instruction, analyzing the instruction data in the modification instruction, and determining the first authority in combination with the meter parameter setting record, and then determining the second authority corresponding to the instruction sending device data, further, combining the first authority and the second authority to double judge whether to modify the parameters of the target meter. Through the above judgment and modification steps, even if the meter box is maliciously damaged and the modification instruction is accessed, it is impossible to pass the authority authentication and modify the meter box parameters. At the same time, when it is detected that there may be non-staff attempting abnormal modifications, abnormal warning information is immediately generated and uploaded to the server terminal, and the background staff is promptly reminded to confirm, which not only achieves the purpose of protecting the meter box parameters, but also meets the need for timely warning when abnormalities occur. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0009] Figure 1 A schematic diagram of the system architecture of a method for modifying electric meter parameters provided in an embodiment of this specification; Figure 2 A flowchart of a method for modifying meter parameters provided in an embodiment of this specification; Figure 3A schematic diagram of the structure of an electric meter parameter modification device provided in an embodiment of this specification; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0010] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0011] The terms "first", "second", "third", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0012] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present specification. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described with respect to some examples may be combined in other examples.

[0013] See also Figure 1 , Figure 1 A schematic diagram of the system architecture of an electric meter parameter modification method provided in an embodiment of this specification is shown.

[0014] like Figure 1 As shown, the system architecture of the electric meter parameter modification method may at least include a terminal 10 , an electric meter controller 20 and a network 30 .

[0015] The terminal 10 includes but is not limited to electronic devices such as smart phones, desktop computers, tablet computers, laptops, smart wearable devices, etc., and may also be software running on the above electronic devices, such as applications, etc. Optionally, the operating system running on the electronic device may include but is not limited to Android system, IOS system, Linux, Windows, etc. Optionally, the terminal 10 provides the user with a meter parameter modification service, and the terminal 10 may obtain a meter parameter modification instruction of an application program interface, and send a meter parameter modification instruction request to the meter controller 20.

[0016] The meter controller 20 can provide background services for the terminal 10. According to the meter parameter modification request sent by the terminal 10, the meter controller 20 will obtain a series of meter parameter modification instructions, and the meter controller 20 transmits the meter parameter modification instructions to other terminals 10 through the network 30. Specifically, the meter controller 20 can be an independent physical server or a control chip inside the meter box.

[0017] The network 30 is used as a medium for providing a communication link between the terminal 10 and the meter controller 20. The network 30 may include various connection types, such as wired, wireless communication links or optical fiber cables.

[0018] In addition, it should be noted that Figure 1 What is shown is only one system provided by the present disclosure. In practical applications, other systems may also be included, for example, more terminals may be included.

[0019] In the embodiments of the present specification, the terminal 10 and the electric meter controller 20 may be directly or indirectly connected via wired or wireless communication, which is not limited in the present disclosure.

[0020] See next Figure 2 , Figure 2 The overall flow chart of an electric meter parameter modification method provided in an embodiment of the present specification is shown. The electric meter parameter modification method can be used in the electric meter controller 20.

[0021] like Figure 2 As shown, the method for modifying the electric meter parameters may at least include the following steps: Step 201: When a modification instruction for a target electric meter is received, query instruction data corresponding to the modification instruction, where the instruction data includes instruction sending device data and modification data.

[0022] In the embodiments of this specification, in order to prevent the parameters in the target meter from being maliciously modified by non-staff, the modification instruction can be identified to determine whether the modification instruction is a normal modification instruction issued by the staff. Therefore, when the modification instruction for the target meter is first received, the instruction data in the modification instruction is queried, that is, the modification instruction is parsed to obtain the corresponding instruction information, which may include the instruction sending device data for sending the modification instruction, the modification data for modifying the target meter, the upgrade data for upgrading the target meter system, and the preset time of the upgrade operation. In order to subsequently determine whether the target meter is allowed to modify the parameters through the parsed data.

[0023] Step 202: When there is upgrade data in the instruction data, determine the first authority for modifying the instruction based on the meter parameter setting record and the upgrade data.

[0024] In the embodiments of this specification, after the electric meter is set up with factory parameters, it is generally not allowed to modify the parameters again. In the present invention, after the electric meter is actually installed, there may be special reasons such as accidental errors, which require the electric staff to perform secondary parameter modifications on site. Therefore, in order to avoid the situation where the electric staff is misjudged as malicious tampering by non-staff when performing secondary parameter modifications, it can be first determined whether there is upgrade data in the instruction data. If there is upgrade data in the instruction data, then the number of parameter settings in the electric meter before this modification and whether the upgrade data meets the upgrade requirements are determined through the electric meter parameter setting record. Finally, only when the electric meter parameter setting record of the electric meter and the received upgrade data meet the requirements, the authentication is allowed to pass the first authority.

[0025] The setting of the authority to jointly judge the record and upgrade data through the meter parameter setting is to prevent the following situations. Scenario 1: When the meter has not been factory set, non-staff obtains complete instruction data through abnormal channels and attempts to customize the meter parameters. Scenario 2: After the meter parameter modification setting and installation are completed, non-staff attempts to customize the meter parameters through their own fabricated non-compliant instruction data.

[0026] In one embodiment, the method further comprises: When there is no upgrade data in the instruction data, determining a third authority of the modification instruction based on the meter parameter setting record, wherein the third authority is characterized as being authenticated when the number of parameter settings is not greater than a preset number; Determine, based on a device permission database, a second permission corresponding to the instruction sending device data; After both the third authority and the second authority are authenticated, parameters of the target electric meter are modified based on the modification data.

[0027] In the embodiment of the present specification, when the electric meter is setting the factory parameters, the first parameter modification of the target electric meter is required. Since the electric meter has not been put into use, there is no running program version, and there is no upgrade data in the instruction data. Therefore, when there is no upgrade data in the instruction data, the third authority corresponding to the modification instruction is determined through the electric meter parameter setting record. When the number of parameter settings corresponding to the electric meter parameter setting record is not greater than the preset number of times 0, it means that there is no parameter modification record before this. This is the first factory parameter setting, and the third authority authentication pass information is generated. Among them, the third authority is actually the same authority as the first authority, but the difference in the authority judgment condition is caused by the presence or absence of upgrade data. Then, the second authority corresponding to the instruction sending device data is determined based on the backup authority database. Finally, when both the third authority and the second authority are authenticated, the parameters of the target electric meter are modified based on the modification data.

[0028] In one possible implementation, when there is upgrade data in the instruction data, determining the first permission for modifying the instruction based on the meter parameter setting record and the upgrade data includes: When there is upgrade data in the instruction data, determining the parameter setting times corresponding to the meter parameter setting record, and determining the upgrade version corresponding to the upgrade data; A first permission for the modification instruction is determined based on the number of parameter settings and the upgrade version, and the first permission is characterized as being authenticated when the number of parameter settings is greater than a preset number and the upgrade version is higher than the current version.

[0029] In the embodiment of the present specification, after determining that there is upgrade data in the instruction data, when determining the first authority to modify the instruction through the meter parameter setting record and the upgrade data, the number of parameter settings corresponding to the meter parameter setting record can be determined first. Generally, the preset number is 0, that is, only when the number of parameter settings is greater than 0, that is, it is characterized by the query that the meter parameters have been set more than once before the modification, and the factory parameter setting has been completed, the parameter setting number requirement is met. If the factory parameter setting has not been performed, the determined parameter setting number is 0, and the parameter setting number does not meet the requirement of being greater than the preset number. Then, the upgrade version corresponding to the upgrade data is determined, and the upgrade version is compared with the current version of the meter. Only when the upgrade version is higher than the current version of the meter, the upgrade data requirement is met. Finally, when both the parameter setting number requirement and the upgrade data requirement are met at the same time, the first authority authentication pass information will be generated.

[0030] Step 203: Determine the second permission corresponding to the instruction sending device data based on the device permission database.

[0031] In the embodiments of this specification, in order to further improve the protection level of the electric meter, it is also possible to first obtain the customized requirements of each power company, and after review, determine a group of upper computer equipment whitelists, and build a device permission database based on the whitelist. In the subsequent actual use of the electric meter, only the upper computer equipment in the equipment permission database can obtain permissions, and devices outside other databases cannot obtain permissions to modify the parameters of the electric meter. Therefore, after obtaining the instruction sending device data in the instruction data, it is further determined whether the instruction sending device is in the device permission database. Only when it is confirmed that the device permission database includes the instruction sending device, the second permission authentication information will be generated.

[0032] In one possible implementation, determining the second permission corresponding to the instruction sending device data based on a device permission database includes: Determine the device type information corresponding to the instruction sending device data; A second permission corresponding to the device type information is determined based on a device permission database.

[0033] In the embodiments of this specification, when determining the second permission corresponding to the instruction sending device data through the device permission database, the device type information corresponding to the instruction sending device data can be determined first, and the type of the sending device that sends the modification instruction can be judged from the instruction sending device data. The preset device permission database can be constructed through the previously obtained upper computer device whitelist, or it can be a device type whitelist, that is, when the device is replaced later, it only needs to ensure that the device type and model remain unchanged to meet the device permission requirements. Therefore, after obtaining the device type information of the sending device, a query is performed in the device permission database. If it is confirmed that the device type is included in the device permission database, the second permission authentication information is generated.

[0034] Step 204: after both the first permission and the second permission are authenticated, modify and upgrade parameters of the target electric meter based on the modification data and the upgrade data.

[0035] In the embodiments of the present specification, the target meter will normally remain in an isolated state and reject simple parameter modification requests. When the determined first permission and second permission are all authenticated, the target meter cancels the isolation, modifies the parameters of the target meter based on the received modification data, and upgrades the program version of the target meter based on the received upgrade data. After completing all modifications and upgrades, the instruction sending device is automatically disconnected and self-restarts to maintain the isolated state again.

[0036] In one possible implementation, after both the first permission and the second permission are authenticated, modifying and upgrading parameters of the target electric meter based on the modification data and the upgrade data includes: Determining a state mode of the target electric meter; When both the first permission and the second permission are authenticated, the state mode is switched to the factory mode, and parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data, wherein the factory mode is a mode in which the target electric meter is allowed to modify parameters; The method further comprises: When both the first permission and the second permission fail to pass the authentication, the state mode is switched to the factory mode, and abnormal warning information is generated. The factory mode is a mode in which parameter modification is prohibited for the target electric meter.

[0037] In the embodiments of this specification, the state mode of the target meter can be determined first. Generally, the target meter can be divided into factory mode, factory mode and judgment mode. Under normal circumstances, the target meter is in factory mode, and parameter modification is prohibited. When the target meter detects a modification instruction, it will briefly switch to judgment mode, stop the energy metering work, and flash the judgment indicator light. After the above series of judgments, when the first authority and the second authority are all authenticated, the judgment mode of the target meter is switched to factory mode. In factory mode, the target meter allows the parameters in the meter to be modified as needed, and when the target meter completes all modifications and upgrades, it automatically disconnects the instruction sending device and restarts itself, and switches back to factory mode. When the first authority and the second authority determined are not all authenticated, the judgment mode of the target meter is directly switched to factory mode, parameter modification is prohibited, and abnormal warning information is immediately generated and uploaded to the server terminal, prompting the background staff to confirm on site whether the meter has been maliciously damaged and attempted parameter tampering.

[0038] In one possible implementation, before modifying and upgrading the parameters of the target electric meter based on the modification data and the upgrade data, the method includes: Determine a short circuit signal corresponding to the target electric meter, and generate short circuit information based on the short circuit signal; The modifying and upgrading the parameters of the target electric meter based on the modification data includes: When the short-circuit information satisfies the short-circuit condition, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

[0039] In the embodiment of the present specification, since a reset hole is generally provided on the hardware printed circuit board of the electric energy meter, and is marked as S1, after confirming that the first authority and the second authority corresponding to the target electric meter are authenticated, it is necessary to short-circuit the reset hole to make the electric meter enter the reset mode before the corresponding parameter modification and upgrade can be completed. Therefore, before modifying and upgrading the parameters of the target electric meter by modifying the data and upgrading the data, the short-circuit signal corresponding to the target electric meter can also be determined first, and short-circuit information is generated based on the short-circuit signal, that is, when the short-circuit signal is received normally, the corresponding short-circuit information generated is characterized as the S1 reset hole is short-circuited, and the short-circuit condition is met. Further, after determining that the short-circuit information meets the short-circuit condition, the parameters of the target electric meter are modified and upgraded according to the acquired modification data and upgrade data. When the received short-circuit signal is abnormal, the corresponding short-circuit information generated is characterized as the S1 reset hole is not short-circuited, the short-circuit condition is not met, and the parameter modification and upgrade of the target electric meter cannot be performed.

[0040] In one possible implementation, the modifying and upgrading parameters of the target electric meter based on the modification data and the upgrade data includes: Determine the data type corresponding to the modified data; When the data type meets the type condition, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

[0041] In the embodiments of the present specification, when modifying and upgrading the parameters of the target meter according to the acquired modification data and upgrade data, the modification data can be first analyzed to obtain the data type corresponding to the modification data. Then, the data type range that the target meter type can operate is obtained. Further, it is determined whether the data type of the acquired modification data meets the type condition. When the condition is met, the parameters of the target meter are modified and upgraded according to the modification data and upgrade data. When the condition is not met, the modification instruction request is interrupted, and the modification data type error information is returned to prompt the staff to confirm whether the modification data is correct, so as to avoid the situation where the modification data type is incorrect due to staff negligence or other reasons, and the meter crashes.

[0042] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0043] See next Figure 3 , Figure 3 The structure diagram of a device for modifying electric meter parameters provided in the embodiment of this specification is shown. It should be noted that: Figure 3 The electric meter parameter modification device shown is used to implement the present application Figure 2 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2 The embodiment shown.

[0044] like Figure 3 As shown, the electric meter parameter modification device may at least include: A query module 301, configured to query instruction data corresponding to a modification instruction when receiving a modification instruction for a target electric meter, wherein the instruction data includes instruction sending device data and modification data; An upgrade module 302, configured to determine the first permission of the modification instruction based on the meter parameter setting record and the upgrade data when the instruction data contains upgrade data; A determination module 303, configured to determine the second permission corresponding to the instruction sending device data based on a device permission database; The modification module 304 is used to modify and upgrade the parameters of the target electric meter based on the modification data and the upgrade data after both the first authority and the second authority are authenticated.

[0045] In one possible implementation, the upgrade module 302 is specifically used to: When there is upgrade data in the instruction data, determining the parameter setting times corresponding to the meter parameter setting record, and determining the upgrade version corresponding to the upgrade data; A first permission for the modification instruction is determined based on the number of parameter settings and the upgrade version, and the first permission is characterized as being authenticated when the number of parameter settings is greater than a preset number and the upgrade version is higher than the current version.

[0046] In one possible implementation, the upgrade module 302 is further configured to: When there is no upgrade data in the instruction data, determining a third authority of the modification instruction based on the meter parameter setting record, wherein the third authority is characterized as being authenticated when the number of parameter settings is not greater than a preset number; Determine, based on a device permission database, a second permission corresponding to the instruction sending device data; After both the third authority and the second authority are authenticated, parameters of the target electric meter are modified based on the modification data.

[0047] In one possible implementation, the determination module 303 is specifically configured to: Determine the device type information corresponding to the instruction sending device data; A second permission corresponding to the device type information is determined based on a device permission database.

[0048] In one possible implementation, the modification module 304 is specifically used to: Determining a state mode of the target electric meter; When both the first permission and the second permission are authenticated, the state mode is switched to the factory mode, and parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data, wherein the factory mode is a mode in which the target electric meter is allowed to modify parameters; The method further comprises: When both the first permission and the second permission fail to pass the authentication, the state mode is switched to the factory mode, and abnormal warning information is generated. The factory mode is a mode in which parameter modification is prohibited for the target electric meter.

[0049] In one possible implementation, the modification module 304 is further configured to: Determine a short circuit signal corresponding to the target electric meter, and generate short circuit information based on the short circuit signal; The modifying and upgrading the parameters of the target electric meter based on the modification data includes: When the short-circuit information satisfies the short-circuit condition, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

[0050] In one possible implementation, the modification module 304 is further configured to: Determine the data type corresponding to the modified data; When the data type meets the type condition, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

[0051] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0052] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.

[0053] See next Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.

[0054] like Figure 4 As shown, the electronic device 400 may include: at least one device processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .

[0055] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.

[0056] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0057] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0058] Among them, the device processor 401 may include one or more processing cores. The device processor 401 uses various interfaces and lines to connect various parts within the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the device processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The device processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the device processor 401, and it can be implemented separately through a chip.

[0059] The memory 405 may include a RAM or a ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned device processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0060] Specifically, the device processor 401 may be used to call the meter parameter modification application stored in the memory 405, and specifically perform the following operations: When a modification instruction for a target electric meter is received, querying instruction data corresponding to the modification instruction, the instruction data including instruction sending device data and modification data; When there is upgrade data in the instruction data, determining the first authority for modifying the instruction based on the meter parameter setting record and the upgrade data; Determine, based on a device permission database, a second permission corresponding to the instruction sending device data; After both the first authority and the second authority are authenticated, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

[0061] As an optional embodiment of this specification, it is characterized in that when there is upgrade data in the instruction data, determining the first permission of the modification instruction based on the meter parameter setting record and the upgrade data includes: When there is upgrade data in the instruction data, determining the parameter setting times corresponding to the meter parameter setting record, and determining the upgrade version corresponding to the upgrade data; A first permission for the modification instruction is determined based on the number of parameter settings and the upgrade version, and the first permission is characterized as being authenticated when the number of parameter settings is greater than a preset number and the upgrade version is higher than the current version.

[0062] As an optional embodiment of this specification, it is characterized in that the method further includes: When there is no upgrade data in the instruction data, determining a third authority of the modification instruction based on the meter parameter setting record, wherein the third authority is characterized as being authenticated when the number of parameter settings is not greater than a preset number; Determine, based on a device permission database, a second permission corresponding to the instruction sending device data; After both the third authority and the second authority are authenticated, parameters of the target electric meter are modified based on the modification data.

[0063] As an optional embodiment of this specification, it is characterized in that the determining the second permission corresponding to the instruction sending device data based on the device permission database includes: Determine the device type information corresponding to the instruction sending device data; A second permission corresponding to the device type information is determined based on a device permission database.

[0064] As an optional embodiment of this specification, it is characterized in that after both the first authority and the second authority are authenticated, modifying and upgrading the parameters of the target electric meter based on the modification data and the upgrade data includes: Determining a state mode of the target electric meter; When both the first permission and the second permission are authenticated, the state mode is switched to the factory mode, and parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data, wherein the factory mode is a mode in which the target electric meter is allowed to modify parameters; The method further comprises: When both the first permission and the second permission fail to pass the authentication, the state mode is switched to the factory mode, and abnormal warning information is generated. The factory mode is a mode in which parameter modification is prohibited for the target electric meter.

[0065] As an optional embodiment of this specification, it is characterized in that before modifying and upgrading the parameters of the target electric meter based on the modification data and the upgrade data, it includes: Determine a short circuit signal corresponding to the target electric meter, and generate short circuit information based on the short circuit signal; The modifying and upgrading the parameters of the target electric meter based on the modification data includes: When the short-circuit information satisfies the short-circuit condition, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

[0066] As an optional embodiment of this specification, it is characterized in that the parameter modification and upgrading of the target electric meter based on the modification data and the upgrade data includes: Determine the data type corresponding to the modified data; When the data type meets the type condition, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

[0067] The embodiments of this specification also provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0068] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0069] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0070] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0071] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0072] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0073] If 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 memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0074] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0075] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

Claims

1. A method for modifying electric meter parameters, characterized in that: The method comprises: When a modification instruction for a target electric meter is received, querying instruction data corresponding to the modification instruction, the instruction data including instruction sending device data and modification data; When there is upgrade data in the instruction data, determining the first authority for modifying the instruction based on the meter parameter setting record and the upgrade data; Determine, based on a device permission database, a second permission corresponding to the instruction sending device data; After both the first authority and the second authority are authenticated, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

2. The method according to claim 1, characterized in that When the instruction data contains upgrade data, determining the first permission for modifying the instruction based on the meter parameter setting record and the upgrade data includes: When there is upgrade data in the instruction data, determining the parameter setting times corresponding to the meter parameter setting record, and determining the upgrade version corresponding to the upgrade data; A first permission for the modification instruction is determined based on the number of parameter settings and the upgrade version, and the first permission is characterized as being authenticated when the number of parameter settings is greater than a preset number and the upgrade version is higher than the current version.

3. The method according to claim 2, characterized in that The method further comprises: When there is no upgrade data in the instruction data, determining a third authority of the modification instruction based on the meter parameter setting record, wherein the third authority is characterized as being authenticated when the number of parameter settings is not greater than a preset number; Determine, based on a device permission database, a second permission corresponding to the instruction sending device data; After both the third authority and the second authority are authenticated, parameters of the target electric meter are modified based on the modification data.

4. The method according to claim 1, characterized in that: The determining, based on a device permission database, the second permission corresponding to the instruction sending device data includes: Determine the device type information corresponding to the instruction sending device data; A second permission corresponding to the device type information is determined based on a device permission database.

5. The method according to claim 1, characterized in that After both the first permission and the second permission are authenticated, modifying and upgrading the parameters of the target electric meter based on the modification data and the upgrade data includes: Determining a state mode of the target electric meter; When both the first permission and the second permission are authenticated, the state mode is switched to the factory mode, and parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data, wherein the factory mode is a mode in which the parameters of the target electric meter are allowed to be modified; The method further comprises: When both the first permission and the second permission fail to pass the authentication, the state mode is switched to the factory mode, and abnormal warning information is generated. The factory mode is a mode in which parameter modification is prohibited for the target electric meter.

6. The method according to claim 1, characterized in that Before modifying and upgrading the parameters of the target electric meter based on the modification data and the upgrade data, the method includes: Determine a short circuit signal corresponding to the target electric meter, and generate short circuit information based on the short circuit signal; The modifying and upgrading the parameters of the target electric meter based on the modification data includes: When the short-circuit information satisfies the short-circuit condition, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

7. The method according to claim 1, characterized in that The modifying and upgrading the parameters of the target electric meter based on the modification data and the upgrade data comprises: Determine the data type corresponding to the modified data; When the data type meets the type condition, parameters of the target electric meter are modified and upgraded based on the modification data and the upgrade data.

8. A device for modifying electric meter parameters, characterized in that: The device comprises: A query module, configured to query instruction data corresponding to a modification instruction when receiving a modification instruction for a target electric meter, wherein the instruction data includes instruction sending device data and modification data; An upgrade module, configured to determine the first permission of the modification instruction based on the meter parameter setting record and the upgrade data when the instruction data contains the upgrade data; A determination module, configured to determine the second permission corresponding to the instruction sending device data based on a device permission database; A modification module is used to modify and upgrade parameters of the target electric meter based on the modification data and upgrade data after both the first authority and the second authority are authenticated.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer-readable storage medium has instructions stored therein, and when the instructions are executed on a computer or a processor, the computer or the processor executes the steps of the method according to any one of claims 1 to 7.