Electric energy meter system and minute freezing method and device applied to electric energy meter system

By setting flash memory on the host energy meter and canceling the memory on the slave energy meter, using a unified minute freezing method and meter number identity signature, the problem of increased cost and volume of multi-user energy meters is solved, and cost and space are achieved. save.

CN118276788BActive Publication Date: 2024-09-10ZHEJIANG CHINT INSTR & METER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410705077.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-10
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

Multi-user energy meters have increased cost and volume because the master energy meter and the slave energy meter each have flash memory chips.

Method used

By setting the flash memory in the host energy meter, canceling the flash memory in the slave energy meter, using the host energy meter to uniformly perform minute freezing, centrally collecting and storing the minute freezing data of the slave energy meter, using the meter number for identity signature and authentication, and equal division The flash memory contains N+1 minutes of frozen files.

Benefits of technology

It reduces the cost of multi-user electric energy meters, reduces the volume, and saves installation space. The cost can be saved by 40%, and the volume can be saved by 70%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118276788B
    Figure CN118276788B
Patent Text Reader

Abstract

The present invention relates to the technical field of electronic electric energy meters, and discloses an electric energy meter system and a minute freezing method and device applied to the electric energy meter system. The method comprises: searching for N slave electric energy meters mounted thereon, dividing a flash memory into N+1 minute freezing files in equal amounts, and each minute freezing file is signed with a meter number. When the minute freezing time is reached, a minute freezing request command is sent to the N slave electric energy meters in turn, and minute freezing data and their own meter numbers returned in turn by the N slave electric energy meters are received. The minute freezing data is stored in the minute freezing file corresponding to the meter number by means of meter number authentication. A host electric energy meter with a flash memory is used, and the slave electric energy meter cancels the flash memory. The host electric energy meter performs unified minute freezing, and centrally collects and stores the minute freezing data of the slave electric energy meters, thereby reducing the cost of multi-user electric energy meters and reducing the volume of multi-user electric energy meters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic electric energy meters, and in particular to an electric energy meter system and a minute freezing method and device applied to the electric energy meter system. Background Art

[0002] The minute freeze function of the energy meter is to roll and store the power variables (voltage, current, active power, reactive power, power factor, active energy, reactive energy, etc.) in the flash at set time intervals. Through the minute freeze function of the energy meter, you can understand the user load characteristics, do a good job of user management, and timely understand the load change trend. Based on this, the minute freeze function is widely used on energy meters.

[0003] Since the multi-user electricity meter is composed of a host electricity meter and several slave electricity meters, when the multi-user electricity meter performs minute freezing according to the conventional practice, the host electricity meter and the N slave electricity meters need to independently store the minute freezing data, which results in the host electricity meter and the N slave electricity meters having to carry flash memory chips, thereby increasing the cost and size of the electricity meter. Summary of the invention

[0004] In view of this, the present invention provides an electric energy meter system and a minute freezing method and device applied to the electric energy meter system to solve the problem of increased cost and volume of the electric energy meter due to the host electric energy meter and N slave electric energy meters all having flash memory chips.

[0005] In a first aspect, the present invention provides a minute freezing method applied to an electric energy meter system, wherein the host electric energy meter is provided with a flash memory, and the slave electric energy meter cancels the flash memory, and the method is applied to the host electric energy meter, and the method comprises:

[0006] Searching for N mounted slave electric energy meters, dividing the flash memory into N+1 minute-freezing files in equal amounts, each minute-freezing file being signed with a meter number;

[0007] When the minute freezing time is reached, the minute freezing request command is sent to the N slave electric energy meters in sequence, and the minute freezing data and the own meter number are received in sequence from the N slave electric energy meters;

[0008] The minute freezing data is stored in the minute freezing file corresponding to the table number by means of table number authentication.

[0009] In an optional implementation, the search for N mounted slave electric energy meters divides the flash memory into N+1 equal minute frozen archives, each minute frozen archive is signed with a meter number, including:

[0010] Sending file request commands to the N slave electric energy meters in sequence;

[0011] Receiving the meter numbers of the N slave electric energy meters returned in sequence;

[0012] According to the number of the master power meter and the slave power meter, the flash memory is equally divided into N+1 minute freezing files;

[0013] The starting area of ​​each minute-frozen file is signed with a table number.

[0014] In an optional implementation manner, sending the archive request command to the N slave electric energy meters in sequence includes:

[0015] Sending the file request command to the first slave electric energy meter;

[0016] forwarding the file request command to the second slave electric energy meter using the first slave electric energy meter;

[0017] forwarding the file request command to the third slave electric energy meter using the second slave electric energy meter;

[0018] Until the N-1th slave electrical energy meter is used to forward the file request command to the Nth slave electrical energy meter.

[0019] In an optional implementation manner, the receiving the self-meter numbers returned sequentially by the N slave electromechanical energy meters includes:

[0020] Receive the first meter number returned from the electromechanical energy meter;

[0021] receiving the meter number of the second slave electromechanical energy meter through the first slave electromechanical energy meter;

[0022] receiving the self meter number returned by the third slave electromechanical energy meter through the first slave electromechanical energy meter and the second slave electromechanical energy meter;

[0023] Until the first slave mechanical electrical energy meter, the second slave mechanical electrical energy meter, ... the N-1th slave mechanical electrical energy meter receives its own meter number returned by the Nth slave mechanical electrical energy meter.

[0024] In an optional implementation, when the minute freeze time is reached, sending minute freeze request commands to the N slave electric energy meters in sequence, and receiving minute freeze data and own information returned in sequence by the N slave electric energy meters, including:

[0025] When the minute freezing time is reached, the minute freezing request command is sent to the first slave electric energy meter, and the minute freezing data and the own meter number returned by the first slave electric energy meter are received;

[0026] Using the first slave electric energy meter to forward the minute freeze request command to the second slave electric energy meter, and receiving the minute freeze data and its own meter number returned by the second slave electric energy meter through the first slave electric energy meter;

[0027] Using the second slave electric energy meter to forward the minute freeze request command to the third slave electric energy meter, and receiving the minute freeze data and its own meter number returned by the third slave electric energy meter through the first slave electric energy meter and the second slave electric energy meter;

[0028] Until the N-1th slave mechanical and electrical energy meter is used to forward the minute freeze request command to the Nth slave mechanical and electrical energy meter, and through the first slave mechanical and electrical energy meter, the second slave mechanical and electrical energy meter... the N-1th slave mechanical and electrical energy meter receives the minute freeze data and its own meter number returned by the Nth slave mechanical and electrical energy meter.

[0029] In an optional implementation, when the one-to-one comparison and authentication between the received table number and the table number in the N+1 minute-frozen file both fail, the flash memory is re-divided into N+2 equal parts of the minute-frozen file.

[0030] In an optional implementation, when the minute freezing data of a certain slave electric energy meter is not received, after a preset condition is met, the flash memory is re-divided into N equal parts of minute freezing archives.

[0031] In a second aspect, the present invention provides a minute freezing method applied to an electric energy meter system, wherein the host electric energy meter is provided with a flash memory, and the slave electric energy meter cancels the flash memory, and the method is applied to the slave electric energy meter, and the method comprises:

[0032] Receive the minute freeze request command sent by the host electric energy meter;

[0033] The minute freezing data and the own meter number are returned to the host electric energy meter in sequence.

[0034] In an optional implementation, the minute freezing method applied to the electric energy meter system further includes:

[0035] Receive the file request command sent by the host electric energy meter;

[0036] The own meter number is returned to the host electric energy meter in sequence.

[0037] In a third aspect, the present invention provides a minute freezing device applied to an electric energy meter system, comprising:

[0038] A freezing file creation module is used to search for N slave electric energy meters mounted thereon, and divide the flash memory into N+1 minute freezing files in equal amounts, each minute freezing file being signed with a meter number;

[0039] A freezing data request module, used for sending minute freezing request commands to the N slave electric energy meters in sequence when the minute freezing time is reached, and receiving the minute freezing data and its own meter number returned in sequence by the N slave electric energy meters;

[0040] The frozen data storage module is used to store the minute frozen data in the minute frozen file corresponding to the table number by table number authentication.

[0041] In a fourth aspect, the present invention provides a minute freezing device applied to an electric energy meter system, comprising: a freezing data receiving module, for receiving a minute freezing request command sent by a host electric energy meter;

[0042] The frozen data return module is used to return the minute frozen data and its own meter number to the host electric energy meter in sequence.

[0043] In a fifth aspect, the present invention provides an electric energy meter system, comprising: a master electric energy meter and N slave electric energy meters, wherein:

[0044] The host electric energy meter is used to search for N slave electric energy meters mounted thereon, and divide the flash memory into N+1 minute-frozen files in equal amounts, each of which is signed with a meter number;

[0045] The master electric energy meter is used to send minute freeze request commands to the N slave electric energy meters in sequence when the minute freeze time is reached, and receive minute freeze data and its own meter number returned in sequence by the N slave electric energy meters;

[0046] The slave electric energy meter is used to receive a minute freeze request command sent by the master electric energy meter;

[0047] The slave electric energy meter is used to return the minute freezing data and its own meter number to the master electric energy meter in sequence;

[0048] The host electric energy meter is used to store the minute frozen data in the minute frozen file corresponding to the meter number by means of meter number authentication.

[0049] In a sixth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the minute freezing method applied to an electric energy meter system according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0050] In a seventh aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the minute freezing method applied to an electric energy meter system according to the first aspect or any corresponding embodiment thereof.

[0051] The present invention provides a minute freezing method applied to an electric energy meter system, the method comprising: searching for N slave electric energy meters mounted thereon, dividing a flash memory into N+1 minute freezing archives in equal amounts, each minute freezing archive being signed by a meter number. When the minute freezing time is up, a minute freezing request command is sent to the N slave electric energy meters in turn, and minute freezing data and the meter numbers thereof are received in turn from the N slave electric energy meters. The minute freezing data is stored in a minute freezing archive corresponding to the meter number by means of meter number authentication. The present invention adopts a host electric energy meter with a flash memory, and the slave electric energy meter cancels the flash memory. The host electric energy meter performs unified minute freezing, centrally collects and stores minute freezing data of the slave electric energy meters, thereby reducing the cost of multi-user electric energy meters and reducing the volume of the multi-user electric energy meters. A data archive is established at the host electric energy meter, and the data archive contains minute freezing archives of N+1 electric energy meters. The minute freezing archive can adapt to the installation order of the slave electric energy meters by means of a method for identity authentication by meter numbers.

[0052] The present invention provides a minute freezing device applied to an electric energy meter system. The present invention adopts a host electric energy meter with a flash memory, and cancels the flash memory in the slave electric energy meter. The host electric energy meter performs a unified minute freezing, and centrally collects and stores the minute freezing data of the slave electric energy meter, thereby reducing the cost of multi-user electric energy meters and reducing the volume of multi-user electric energy meters. A data file is established at the host electric energy meter, and the data file contains the minute freezing files of N+1 electric energy meters. The method of identity authentication using the meter number is adopted, and the minute freezing file can adapt to the installation order of the slave electric energy meters.

[0053] The present invention provides an electric energy meter system, which reduces the cost and volume of multi-user electric energy meters by adopting a minute freezing method applied to the electric energy meter system. Compared with using a traditional single electric energy meter, it can save 70% of installation space and 40% of cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0055] Figure 1 is a schematic diagram of an application scenario of a minute freezing method applied to an electric energy meter system according to an embodiment of the present invention;

[0056] Figure 2 is a flow chart of a minute freezing method applied to an electric energy meter system according to an embodiment of the present invention;

[0057] Figure 3 is a schematic diagram of a process for establishing an electric energy meter data file according to an embodiment of the present invention;

[0058] Figure 4 is a schematic diagram of a minute freezing solution flow according to an embodiment of the present invention;

[0059] Figure 5 is a schematic diagram of rolling storage of a minute freezing solution according to an embodiment of the present invention;

[0060] Figure 6 is a schematic diagram of inserting a minute freeze file adjustment of a slave electric energy meter according to an embodiment of the present invention;

[0061] Figure 7 is a schematic diagram of adjusting the minute freezing file of the electric energy meter of a slave machine for removal according to an embodiment of the present invention;

[0062] Figure 8 is another flow chart of a minute freezing method applied to an electric energy meter system according to an embodiment of the present invention;

[0063] Fig. 9 is a structural block diagram of a minute freezing device applied to an electric energy meter system according to an embodiment of the present invention;

[0064] Fig.10 is another structural block diagram of a minute freezing device applied to an electric energy meter system according to an embodiment of the present invention;

[0065] Fig.11 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0067] like Figure 1 As shown, it is a schematic diagram of the application scenario of an embodiment of the present invention. The electric energy meter system is composed of a host electric energy meter and a plurality of slave electric energy meters. The host electric energy meter and the slave electric energy meter are installed in a row, and are connected internally by two wires. The two wires are standard 485 buses. There is a set of 485 communication lines on the right side of the host electric energy meter, and there is a set of 485 communication lines on the left and right sides of the slave electric energy meter. The 485 communication lines on the left and right are not connected. The 485 communication line of the host electric energy meter is connected to the 485 communication line on the left side of the slave electric energy meter 1, and the 485 communication line on the right side of the slave electric energy meter 1 is connected to the 485 communication line on the left side of the slave electric energy meter 2, and so on.

[0068] Among them, the host power meter has a power module, which is input by 220V AC power, and the slave power meter does not have a power module, and is powered by the power module of the host power meter. The host power meter has an LCD display, and the slave power meter does not have an LCD display. The LCD display of the host power meter displays data uniformly. The host power meter has a Bluetooth module and has the function of external communication. The slave power meter does not have a Bluetooth module, and the Bluetooth module of the host power meter is used for external communication. The host power meter can work alone or be connected to several slave power meters. The slave power meter can easily increase, reduce or change the installation order. The host power meter and the slave power meter can be single-phase power meters or three-phase power meters.

[0069] based on Figure 1 The present invention provides a minute freezing method applied to an electric energy meter system, wherein the host electric energy meter is provided with a flash memory, and the slave electric energy meter cancels the flash memory. The method is applied to the host electric energy meter, such as Figure 2 As shown, the method comprises the following steps:

[0070] Step S11, searching for N mounted slave electric energy meters, dividing the flash memory into N+1 equal parts of minute-frozen files, each minute-frozen file is signed with a meter number.

[0071] Specifically, when the energy meter system is used for the first time, after the host energy meter is powered on, it first searches out the N slave energy meters mounted below through the communication line. After the host energy meter receives the meter number information of the N slave energy meters, plus the host energy meter itself, a total of N+1 energy meters, the entire flash is used as an energy meter data file, and is equally divided into N+1 minute frozen files. Each minute frozen file occupies 1 / (N+1) of the meter data file space, such as Figure 3 As shown. The host electric energy meter uses the meter number to sign the starting area of ​​each minute frozen file. Each subsequent minute frozen data storage uses the meter number for identity authentication. Each initial minute frozen file only contains the meter number information of each meter, and no minute frozen data.

[0072] Step S12, when the minute freezing time is reached, minute freezing request commands are sent to N slave electromechanical energy meters in sequence, and minute freezing data and own meter numbers are received in sequence from the N slave electromechanical energy meters.

[0073] Specifically, the host power meter uniformly performs synchronized minute freezing. When the minute freezing time arrives, the host power meter sends a minute freezing request command to N slave power meters in sequence through the communication line. After receiving the minute freezing request command, each slave power meter returns minute freezing response data and its own meter number. The host power meter receives the minute freezing data and its own meter number returned in sequence by the N slave power meters.

[0074] Step S13, storing the minute freeze data in the minute freeze file corresponding to the table number by table number authentication.

[0075] Specifically, after the host power meter receives the minute freeze data and its own meter number returned from the mechanical power meter, it compares and authenticates the meter number with the meter numbers in N+1 minute freeze files one by one. When they are equal, the authentication is considered successful and the minute freeze data is stored in the minute freeze file.

[0076] The present invention provides a minute freezing method applied to an electric energy meter system, the method comprising: searching for N slave electric energy meters mounted thereon, dividing a flash memory into N+1 minute freezing archives in equal amounts, each minute freezing archive being signed by a meter number. When the minute freezing time is up, a minute freezing request command is sent to the N slave electric energy meters in turn, and minute freezing data and their own meter numbers returned in turn by the N slave electric energy meters are received. The minute freezing data is stored in a minute freezing archive corresponding to the meter number by means of meter number authentication. The present invention adopts a host electric energy meter with a flash memory, and the slave electric energy meter cancels the flash memory. The host electric energy meter performs a unified minute freezing, and collects the minute freezing data of the slave electric energy meters in a centralized manner, thereby reducing the cost of the electric energy meter and the size of the electric energy meter. A data archive is established at the host electric energy meter, and the data archive contains minute freezing archives of N+1 electric energy meters. The method of using the meter number for identity authentication allows the minute freezing archive to adapt to the installation order of the slave electric energy meters.

[0077] In an optional implementation, step S11 includes the following process:

[0078] Step S111, sending a file request command to N slave electrical energy meters in sequence.

[0079] Step S112, receiving the meter numbers of N slave electromechanical energy meters returned in sequence.

[0080] Step S113, dividing the flash memory into N+1 minute-freezing files in equal amounts according to the number of the master power meter and the slave power meter.

[0081] Step S114, the starting area of ​​each minute frozen file is signed with the table number.

[0082] Specifically, the master electric energy meter sends a file request command to N slave electric energy meters in the following manner:

[0083] Step S1111, sending a file request command to the first slave electric energy meter.

[0084] Step S1112: utilizing the first slave electric energy meter to forward the file request command to the second slave electric energy meter.

[0085] Step S1113: utilizing the second slave electric energy meter to forward the file request command to the third slave electric energy meter.

[0086] Step S1114, until the N-1th slave electrical energy meter is used to forward the file request command to the Nth slave electrical energy meter.

[0087] Furthermore, the host electric energy meter receives its own meter number returned by N slave electric energy meters in the following manner:

[0088] Step S1121, receiving the meter number of the first self-electrical energy meter returned from the electromechanical energy meter.

[0089] Step S1122: receiving the meter number of the first slave electromechanical energy meter returned by the second slave electromechanical energy meter.

[0090] Step S1123, receiving the own meter number returned by the third slave electromechanical energy meter through the first slave electromechanical energy meter and the second slave electromechanical energy meter.

[0091] Step S1124, until the first slave electromechanical energy meter, the second slave electromechanical energy meter, ... the N-1th slave electromechanical energy meter receives its own meter number returned by the Nth slave electromechanical energy meter.

[0092] In the embodiment of the present invention, the meter number of the electric energy meter is unique, and the present invention uses the meter number information as the identity signature of the electric energy meter data file. When used for the first time, the electric energy meter data file is empty. When the host electric energy meter is powered on, it first searches for the slave electric energy meter mounted below through the communication line. The host electric energy meter sends a file request command to the first slave electric energy meter through the 485 communication line. After receiving the command, the first slave electric energy meter returns its own meter number to the host electric energy meter through the 485 communication line on the left. Then the first slave electric energy meter forwards the file request command to the second slave electric energy meter through the 485 communication line on the right. After receiving the command, the second slave electric energy meter returns its own meter number to the first slave electric energy meter through the 485 communication line on the left. After receiving the command, the first slave electric energy meter forwards it to the host electric energy meter through the 485 communication line on the left. Then the second slave energy meter forwards the file request command to the third slave energy meter through the 485 communication line on the right... In this way, the file request commands are sent down one by one, and the meter numbers of the slave energy meters are uploaded one by one... After the host energy meter receives the meter number information of N slave energy meters, plus the host energy meter itself, a total of N+1, the entire flash is used as an energy meter data file, and divided into N+1 minute frozen files in equal amounts. Each minute frozen file occupies 1 / (N+1) of the meter data file space. The host energy meter uses the meter number to sign the starting area of ​​each minute frozen file. In the later stage, each minute frozen data storage uses the meter number for identity authentication.

[0093] In an optional implementation, step S12 includes the following process:

[0094] Step S121, when the minute freezing time is reached, a minute freezing request command is sent to the first slave electric energy meter, and minute freezing data and the own meter number returned by the first slave electric energy meter are received.

[0095] Step S122: using the first slave electric energy meter to forward the minute freeze request command to the second slave electric energy meter, and receiving the minute freeze data and its own meter number returned by the second slave electric energy meter through the first slave electric energy meter.

[0096] Step S123, using the second slave electric energy meter to forward the minute freeze request command to the third slave electric energy meter, and receiving the minute freeze data and its own meter number returned by the third slave electric energy meter through the first slave electric energy meter and the second slave electric energy meter.

[0097] Step S124, until the N-1th slave mechanical and electrical energy meter is used to forward the minute freeze request command to the Nth slave mechanical and electrical energy meter, and the N-1th slave mechanical and electrical energy meter receives the minute freeze data and its own meter number returned by the Nth slave mechanical and electrical energy meter through the first slave mechanical and electrical energy meter, the second slave mechanical and electrical energy meter...

[0098] Specifically, Figure 4 As shown, the host electric energy meter performs timing. When the minute freezing time is reached, the host electric energy meter sends a minute freezing request command to the first slave electric energy meter. After receiving the command, the first slave electric energy meter returns its own minute freezing data plus its own meter number to the host electric energy meter through the 485 communication line on the left. After receiving the command, the host electric energy meter compares the meter number with the meter number in the N+1 minute freezing file one by one for authentication. When they are equal, the authentication is considered successful and the minute freezing data is stored in the minute freezing file. Then the first slave electric energy meter forwards the minute freezing request command to the second slave electric energy meter through the 485 communication line on the right. After receiving the command, the second slave electric energy meter returns its own minute freezing data plus its own meter number to the first slave electric energy meter through the 485 communication line on the left. After receiving the command, the first slave electric energy meter forwards the command to the host electric energy meter through the 485 communication line on the left. The host also stores the minute freezing data in the corresponding minute freezing file through the meter number authentication method. Then the second slave electric energy meter forwards the minute freeze request command to the third slave electric energy meter through the 485 communication line on the right... In this way, the minute freeze request commands are sent down one by one, and the minute freeze data of the slave electric energy meter plus the meter number are uploaded one by one... Each minute freeze file adopts a rolling storage method, and the earliest minute freeze data is overwritten when it is full. The schematic diagram of the minute freeze scheme rolling storage is as follows Figure 5 When the installation order of the slave electric energy meter changes, the minute frozen file can adapt to the installation order of the slave electric energy meter without file confusion due to the meter number authentication method, and the order of the minute frozen file does not need to correspond one to one according to the mounting order.

[0099] In an optional implementation, when the one-to-one comparison and authentication between the received table number and the table number in the N+1 minute-frozen file both fail, the flash memory is re-divided into N+2 equal parts of the minute-frozen file.

[0100] Specifically, Figure 6 As shown, when a new slave electric energy meter is inserted, during the minute freezing period, if the master electric energy meter fails to compare and authenticate the meter number received with the meter number in the N+1 minute freezing files, it is considered that a new slave is inserted, and the electric energy meter data file is re-divided into N+2 equal minute freezing files, each minute freezing file occupies 1 / (N+2) of the electric energy meter data file space. In this way, the space of each minute freezing file becomes smaller, and it is determined whether the total freezing file is full and overflowed. If it is full and overflowed, the earliest part of the minute freezing data is deleted. When the minute is frozen, the newly allocated minute freezing file and the old minute freezing file are stored from the same address.

[0101] In an optional implementation, when the minute freezing data of a certain slave electric energy meter is not received, after a preset condition is met, the flash memory is re-divided into N equal parts of minute freezing archives.

[0102] Specifically, the host electric energy meter performs real-time fragmentation management during operation. During the minute freezing period, the host electric energy meter will normally receive the minute freezing data of N slave electric energy meters because N slave electric energy meters are mounted below. When the minute freezing data of a slave electric energy meter is not received, it is considered that the electric energy meter has been removed. At this time, the minute freezing file of the electric energy meter is considered to be a fragment and is temporarily considered invalid and occupies the space of the electric energy meter data file. However, because the electric energy meter may be reinserted later, defragmentation is not performed first to avoid the premature loss of the minute freezing file of the slave electric energy meter. An area is opened inside the host electric energy meter to register fragmentation information. The fragmentation information includes the removal time and meter number of the slave electric energy meter. When a slave electric energy meter considers it to be a fragment, it registers the fragmentation. When the electric energy meter is reinserted, the fragmentation information is cleared. When the minute freezing file of the electric energy meter is stored larger and larger, the available space is getting smaller and smaller until it is full, and then defragmentation is performed. During this period, multiple fragments may be generated. At this time, query the fragment information registration and delete the earliest fragment according to the time when the fragment was generated. Then re-divide the electric energy meter data file, and divide the previous N+1 minute frozen files into N minute frozen files in equal amounts. Each minute frozen file occupies 1 / N of the electric energy meter data file space, and the space of each minute frozen file is expanded accordingly. If there is no fragmentation, the earliest part of the minute frozen data is deleted in rolling storage. The schematic diagram of the adjustment of the minute frozen file of the electric energy meter removed from the machine is as follows Figure 7 shown.

[0103] When a slave electric energy meter is inserted, the electric energy meter data file is dynamically adjusted into N+2 minute frozen files, and each minute frozen file is dynamically adjusted to occupy 1 / (N+2) of the electric energy meter data file space; the host electric energy meter performs real-time fragment management and registers the fragments of the removed slave electric energy meter. When each minute frozen file is full, it is defragmented, useless fragments are deleted, and the electric energy meter data file is readjusted to ensure full use of the electric energy meter data file space.

[0104] The present invention provides a minute freezing method applied to an electric energy meter system. The method is applied to a slave electric energy meter. The slave electric energy meter cancels the flash memory, such as Figure 8 As shown, the method comprises the following steps:

[0105] Step S21, receiving a file request command sent by the host electric energy meter.

[0106] Step S22, returning the meter number of the meter to the host power meter in sequence.

[0107] Step S23, receiving a minute freeze request command sent by the host power meter.

[0108] Step S24, returning the minute freeze data and its own meter number to the host power meter in sequence.

[0109] For details, please refer to step S11 and step S12 in the above embodiment.

[0110] The present invention provides a minute freezing method applied to an electric energy meter system, which adopts a host electric energy meter with a flash memory and cancels the flash memory of a slave electric energy meter. The host electric energy meter performs a unified minute freezing, and centrally collects and stores the minute freezing data of the slave electric energy meter, thereby reducing the cost of multi-user electric energy meters and reducing the volume of multi-user electric energy meters.

[0111] The present invention provides a minute freezing device applied to an electric energy meter system, such as Fig. 9 As shown, including:

[0112] The frozen file creation module 61 is used to search the N slave electric energy meters mounted thereon, and divide the flash memory into N+1 equal parts of minute frozen files, each of which is signed with a meter number. For details, see step S11 in the above embodiment.

[0113] The freeze data request module 62 is used to send a minute freeze request command to the N slave electric energy meters in sequence when the minute freeze time is reached, and receive the minute freeze data and its own meter number returned in sequence by the N slave electric energy meters. For details, see step S12 in the above embodiment.

[0114] The frozen data module 63 is used to store the minute frozen data in the minute frozen file corresponding to the table number by table number authentication. For details, see step S13 in the above embodiment.

[0115] The present invention provides a minute freezing device applied to an electric energy meter system, such as Fig.10 As shown, including:

[0116] The freeze data receiving module 71 is used to receive the minute freeze request command sent by the host electric energy meter. For details, see step S11 in the above embodiment.

[0117] The frozen data return module 72 is used to return the minute frozen data and its own meter number to the host electric energy meter in sequence. For details, see step S12 in the above embodiment.

[0118] The present invention provides a minute freezing device applied to an electric energy meter system. The present invention adopts a host electric energy meter with a flash memory, and cancels the flash memory of the slave electric energy meter. The host electric energy meter performs a unified minute freezing, and centrally collects the minute freezing data of the slave electric energy meter, thereby reducing the cost of the electric energy meter and the size of the electric energy meter. A data file is established at the host electric energy meter, and the data file contains the minute freezing files of N+1 electric energy meters. The method of identity authentication using the meter number is adopted, and the minute freezing file can adapt to the installation order of the slave electric energy meter.

[0119] The present invention provides an electric energy meter system, such as Figure 1 As shown, it includes: a host electric energy meter and N slave electric energy meters.

[0120] Among them, the host power meter is used to search for the N slave power meters mounted thereon, and divide the flash memory into N+1 equal minute-frozen archives, and each minute-frozen archive is signed with the meter number. The host power meter is used to send minute-freeze request commands to the N slave power meters in turn when the minute-freeze time arrives, and receive the minute-freeze data and its own meter number returned in turn by the N slave power meters. The slave power meter is used to receive the minute-freeze request command sent by the host power meter. The slave power meter is used to return the minute-freeze data and its own meter number to the host power meter in turn. The host power meter is used to store the minute-freeze data in the minute-freeze archive corresponding to the meter number by means of meter number authentication.

[0121] Specifically, when the electric energy meter system is used for the first time, when the host electric energy meter is powered on, it first searches out the N slave electric energy meters mounted below through the communication line. After the host electric energy meter receives the meter number information of the N slave electric energy meters, plus the host electric energy meter itself, a total of N+1 meters, the entire flash is used as an electric energy meter data file, and is equally divided into N+1 minute-frozen files. Each minute-frozen file occupies 1 / (N+1) of the meter data file space. The host electric energy meter uses the meter number to sign the starting area of ​​each minute-frozen file. Each subsequent minute-frozen data storage uses the meter number for identity authentication. Each initial minute-frozen file only contains the meter number information of each meter, and no minute-frozen data. The host electric energy meter uniformly performs synchronized minute freezing. When the minute freezing time is reached, the host electric energy meter sends a minute freezing request command through the communication line. After receiving it, each slave electric energy meter returns the minute freezing response data. After receiving it, the host electric energy meter performs identity authentication according to the meter number of the slave electric energy meter and stores it in the minute freezing file of each slave electric energy meter.

[0122] The present invention provides an electric energy meter system, which reduces the cost and volume of multi-user electric energy meters by adopting a minute freezing method applied to the electric energy meter system. Compared with using a traditional single electric energy meter, it can save 70% of installation space and 40% of cost.

[0123] The embodiment of the present invention also provides a computer device having the above Fig. 9 and Fig.10 The minute freezing device shown is applied to the electric energy meter system.

[0124] See also Fig.11 , Fig.11 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.11 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.11 A processor 10 is taken as an example.

[0125] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0126] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0127] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0128] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0129] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0130] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0131] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A minute freezing method applied to an electric energy meter system, characterized in that: The host electric energy meter is provided with a flash memory, and the slave electric energy meter cancels the flash memory. The method is applied to the host electric energy meter, and the method includes: Searching for N mounted slave electric energy meters, dividing the flash memory into N+1 minute-freezing files in equal amounts, each minute-freezing file being signed with a meter number; When the minute freezing time is reached, the minute freezing request command is sent to the N slave electric energy meters in sequence, and the minute freezing data and the own meter number are received in sequence from the N slave electric energy meters; The minute freezing data is stored in the minute freezing file corresponding to the table number by table number authentication; The search for the N mounted slave electric energy meters, and dividing the flash memory into N+1 equal minute frozen files, each minute frozen file is signed with a meter number, including: Sending file request commands to the N slave electric energy meters in sequence; Receiving the meter numbers of the N slave electric energy meters returned in sequence; According to the number of the master power meter and the slave power meter, the flash memory is equally divided into N+1 minute freezing files; The starting area of ​​each minute frozen file is signed with a table number; The sending of the file request command to the N slave electric energy meters in sequence includes: Sending the file request command to the first slave electric energy meter; forwarding the file request command to the second slave electric energy meter using the first slave electric energy meter; forwarding the file request command to the third slave electric energy meter using the second slave electric energy meter; Until the N-1th slave electrical energy meter is used to forward the file request command to the Nth slave electrical energy meter; The receiving the self meter numbers returned in sequence by the N slave electric energy meters comprises: Receive the first meter number returned from the electromechanical energy meter; receiving the meter number of the second slave electromechanical energy meter through the first slave electromechanical energy meter; receiving the self meter number returned by the third slave electromechanical energy meter through the first slave electromechanical energy meter and the second slave electromechanical energy meter; Until the first slave electromechanical energy meter, the second slave electromechanical energy meter, ... the N-1th slave electromechanical energy meter receives its own meter number returned by the Nth slave electromechanical energy meter; The host electric energy meter is provided with a flash memory, and the slave electric energy meter cancels the flash memory. The method is applied to the slave electric energy meter, and the method includes: Receive the minute freeze request command sent by the host electric energy meter; Returning the minute freezing data and the meter number to the host electric energy meter in sequence; Also includes: Receive the file request command sent by the host electric energy meter; Returning its own meter number to the host electric energy meter in sequence; The receiving of the file request command sent by the host electric energy meter includes: When the slave electric energy meter is the first slave electric energy meter, directly receiving the file request command sent by the master electric energy meter; When the slave electric energy is not the first slave electric energy meter, the first slave electric energy meter is used to forward the file request command to the second slave electric energy meter; the second slave electric energy meter is used to forward the file request command to the third slave electric energy meter; until the N-1th slave electric energy meter is used to forward the file request command to the Nth slave electric energy meter; Returning the own meter number to the host electric energy meter in sequence, including: When the slave electric energy meter is the first slave electric energy meter, the meter number thereof is directly returned to the master electric energy meter; When the slave electrical energy is not the first slave electrical energy meter, the first slave electrical energy meter receives its own meter number returned by the second slave electrical energy meter; the first slave electrical energy meter and the second slave electrical energy meter receive their own meter number returned by the third slave electrical energy meter; until the first slave electrical energy meter, the second slave electrical energy meter...the N-1th slave electrical energy meter receives its own meter number returned by the Nth slave electrical energy meter.

2. The minute freezing method applied to the electric energy meter system according to claim 1, characterized in that: When the minute freezing time is reached, the minute freezing request command is sent to the N slave electric energy meters in sequence, and the minute freezing data and self information returned in sequence by the N slave electric energy meters are received, including: When the minute freezing time is reached, the minute freezing request command is sent to the first slave electric energy meter, and the minute freezing data and the own meter number returned by the first slave electric energy meter are received; Using the first slave electric energy meter to forward the minute freeze request command to the second slave electric energy meter, and receiving the minute freeze data and its own meter number returned by the second slave electric energy meter through the first slave electric energy meter; Using the second slave electric energy meter to forward the minute freeze request command to the third slave electric energy meter, and receiving the minute freeze data and its own meter number returned by the third slave electric energy meter through the first slave electric energy meter and the second slave electric energy meter; Until the N-1th slave mechanical and electrical energy meter is used to forward the minute freeze request command to the Nth slave mechanical and electrical energy meter, and through the first slave mechanical and electrical energy meter, the second slave mechanical and electrical energy meter... the N-1th slave mechanical and electrical energy meter receives the minute freeze data and its own meter number returned by the Nth slave mechanical and electrical energy meter.

3. The minute freezing method applied to the electric energy meter system according to claim 1, characterized in that: When the received table number and the table number in the N+1 minute freezing file are compared and authenticated one by one and both fail, the flash memory is divided into N+2 minute freezing files in equal amounts again.

4. The minute freezing method applied to the electric energy meter system according to claim 1, characterized in that: When the minute freezing data of a slave electric energy meter is not received, the flash memory is re-divided into N equal minute freezing files after the preset conditions are met.

5. The minute freezing method applied to the electric energy meter system according to claim 1, characterized in that: The minute freezing device used in the electric energy meter system includes: A freezing file creation module is used to search for N slave electric energy meters mounted thereon, and divide the flash memory into N+1 minute freezing files in equal amounts, each of which is signed with a meter number; A freezing data request module, used for sending minute freezing request commands to the N slave electric energy meters in sequence when the minute freezing time is reached, and receiving the minute freezing data and its own meter number returned in sequence by the N slave electric energy meters; A frozen data storage module, used for storing the minute frozen data in the minute frozen file corresponding to the table number by table number authentication; The search for the N mounted slave electric energy meters, and dividing the flash memory into N+1 equal minute frozen files, each minute frozen file is signed with a meter number, including: Sending file request commands to the N slave electric energy meters in sequence; Receiving the meter numbers of the N slave electric energy meters returned in sequence; According to the number of the master power meter and the slave power meter, the flash memory is equally divided into N+1 minute freezing files; The starting area of ​​each minute frozen file is signed with a table number; The sending of the file request command to the N slave electric energy meters in sequence includes: Sending the file request command to the first slave electric energy meter; forwarding the file request command to the second slave electric energy meter using the first slave electric energy meter; forwarding the file request command to the third slave electric energy meter using the second slave electric energy meter; Until the N-1th slave electrical energy meter is used to forward the file request command to the Nth slave electrical energy meter; The receiving the self meter numbers returned in sequence by the N slave electric energy meters comprises: Receive the first meter number returned from the electromechanical energy meter; receiving the meter number of the second slave electromechanical energy meter through the first slave electromechanical energy meter; receiving the self meter number returned by the third slave electromechanical energy meter through the first slave electromechanical energy meter and the second slave electromechanical energy meter; Until the first slave electromechanical energy meter, the second slave electromechanical energy meter, ... the N-1th slave electromechanical energy meter receives its own meter number returned by the Nth slave electromechanical energy meter; include: A freeze data receiving module is used to receive a minute freeze request command sent by a host electric energy meter; A frozen data return module, used for returning the minute frozen data and its own meter number to the host electric energy meter in sequence; Also includes: Receive the file request command sent by the host electric energy meter; Returning its own meter number to the host electric energy meter in sequence; The receiving of the file request command sent by the host electric energy meter includes: When the slave electric energy is the first slave electric energy meter, it directly receives the file request command sent by the master electric energy meter; When the slave electric energy is not the first slave electric energy meter, the first slave electric energy meter is used to forward the file request command to the second slave electric energy meter; the second slave electric energy meter is used to forward the file request command to the third slave electric energy meter; until the N-1th slave electric energy meter is used to forward the file request command to the Nth slave electric energy meter; Returning the own meter number to the host electric energy meter in sequence, including: When the slave electric energy meter is the first slave electric energy meter, the meter number thereof is directly returned to the master electric energy meter; When the slave electrical energy is not the first slave electrical energy meter, the first slave electrical energy meter receives its own meter number returned by the second slave electrical energy meter; the first slave electrical energy meter and the second slave electrical energy meter receive their own meter number returned by the third slave electrical energy meter; until the first slave electrical energy meter, the second slave electrical energy meter...the N-1th slave electrical energy meter receives its own meter number returned by the Nth slave electrical energy meter.

6. The minute freezing method applied to the electric energy meter system according to claim 1, characterized in that: The electric energy meter system includes: a host electric energy meter and N slave electric energy meters, among which: The host electric energy meter is used to search for N slave electric energy meters mounted thereon, and divide the flash memory into N+1 minute-frozen files in equal amounts, each of which is signed with a meter number; The master electric energy meter is used to send minute freeze request commands to the N slave electric energy meters in sequence when the minute freeze time is reached, and receive minute freeze data and its own meter number returned in sequence by the N slave electric energy meters; The slave electric energy meter is used to receive a minute freeze request command sent by the master electric energy meter; The slave electric energy meter is used to return the minute freezing data and its own meter number to the master electric energy meter in sequence; The host electric energy meter is used to store the minute frozen data in the minute frozen file corresponding to the meter number by meter number authentication; The search for the N mounted slave electric energy meters, and dividing the flash memory into N+1 equal minute frozen files, each minute frozen file is signed with a meter number, including: Sending file request commands to the N slave electric energy meters in sequence; Receiving the meter numbers of the N slave electric energy meters returned in sequence; According to the number of the master power meter and the slave power meter, the flash memory is equally divided into N+1 minute freezing files; The starting area of ​​each minute frozen file is signed with a table number; The sending of the file request command to the N slave electric energy meters in sequence includes: Sending the file request command to the first slave electric energy meter; forwarding the file request command to the second slave electric energy meter using the first slave electric energy meter; forwarding the file request command to the third slave electric energy meter using the second slave electric energy meter; Until the N-1th slave electrical energy meter is used to forward the file request command to the Nth slave electrical energy meter; The receiving the self meter numbers returned in sequence by the N slave electric energy meters comprises: Receive the first meter number returned from the electromechanical energy meter; receiving the meter number of the second slave electromechanical energy meter through the first slave electromechanical energy meter; receiving the self meter number returned by the third slave electromechanical energy meter through the first slave electromechanical energy meter and the second slave electromechanical energy meter; Until the first slave mechanical electrical energy meter, the second slave mechanical electrical energy meter, ... the N-1th slave mechanical electrical energy meter receives its own meter number returned by the Nth slave mechanical electrical energy meter.

7. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the minute freezing method applied to an electric energy meter system according to any one of claims 1 to 6 by executing the computer instructions.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the minute freezing method applied to an electric energy meter system according to any one of claims 1 to 6.