Control method and device of multi-user electric energy meter and host equipment

By implementing identification modules and processing modules in the host device, the problem of high cost and low efficiency of centralized management of multi-user power meters is solved, and efficient data processing and management is achieved.

CN120017992APending Publication Date: 2025-05-16ZHEJIANG CHINT IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510089655.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, the centralized management of multi-user power meters is high and inefficient, making it difficult to effectively support remote management and local prepayment functions.

Method used

By implementing the identification module and processing module in the host device, identifying the device identification of the metering device and allocating a storage area for it, storing and processing the data of the metering device, centralized management of multi-user power meters is realized.

Benefits of technology

It reduces the detection cost of multi-user power meter, improves data processing efficiency, and realizes efficient centralized management of multi-user power meter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017992A_ABST
    Figure CN120017992A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device of a multi-user electric energy meter and host equipment. According to the application, each electric energy meter corresponds to one metering device, and the host device communicates with the terminal device and the plurality of metering devices. And based on an identification instruction and an operation instruction which are sent by the terminal equipment and aim at the metering equipment, the storage of the first parameter data of the metering equipment is completed in the host equipment, and data processing is performed based on the stored first parameter data. According to the application, a concentrator with higher cost and larger volume does not need to be added to collect the multi-user electric energy meter, and the data processing of the multi-user electric energy meter is completed at the host equipment through the metering equipment with smaller volume and lower cost, so that the detection efficiency can be improved while the detection cost of the multi-user electric energy meter is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power systems, and in particular to a control method, device and host equipment for a multi-user electric energy meter. Background Art

[0002] In the related technology, in the application field of multi-user electric energy meters, it is usually composed of a management device and multiple independent electric energy meters. If it is necessary to support functions such as remote management of local prepayment, a concentrator needs to be added. The concentrator reads the electric energy meter downstream and interacts with the background upstream. Downlink collection can be carried out through wired or carrier communication. However, this method has the problems of large product size and high system construction cost, which is not conducive to centralized management of multiple electric energy meters. Summary of the invention

[0003] The purpose of the present application is to provide a control method, device and host device for a multi-user electric energy meter, so as to solve the problem of high cost and low efficiency of centralized management of multi-user electric energy meters in the related art.

[0004] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a control method for a multi-user electric energy meter, which is applied to a host device, the host device communicates with a terminal device and multiple metering devices respectively, the multiple metering devices are used to collect data of the electric energy meter, and one metering device corresponds to one electric energy meter. The control method includes:

[0005] In response to an identification instruction for a metering device sent by a terminal device, identifying a device identification of the metering device, and allocating a storage area for the metering device based on the device identification, the storage area being used to store first parameter data of the metering device;

[0006] In response to an operation instruction for the metering device sent by the terminal device, data processing corresponding to the operation instruction is performed on the metering device based on the stored first parameter data.

[0007] In an embodiment of the present application, identifying a device identification of a metering device and allocating a storage area to the metering device based on the device identification includes:

[0008] sequentially transmitting an electronic key containing verification information to a plurality of metering devices;

[0009] A storage area is allocated to the metering device based on a reply data frame of the metering device to the verification information.

[0010] In an embodiment of the present application, the reply data frame includes a device identification of the metering device, and the storage area is allocated to the metering device based on the reply data frame of the metering device for the verification information, including:

[0011] When receiving a reply data frame returned by the metering device, determining whether the device identification in the reply data frame matches the stored device identification;

[0012] If the device identification in the reply data frame does not match the stored device identification, determining whether there is an idle first storage area;

[0013] If there is an idle first storage area, a mapping relationship is established between the device identification and the first parameter data of the metering device corresponding to the device identification and the first storage area, and the allocation mark of the device identification is set to the first mark, and the allocation mark of the first storage area is set to the second mark.

[0014] In the embodiment of the present application, allocating a storage area for the metering device based on the reply data frame of the metering device to the verification information also includes:

[0015] If there is no free first storage area, setting the allocation flag of the device identification to the third flag;

[0016] After the identification of the measuring equipment is completed, it is determined whether there is an equipment identification whose allocation mark is the third mark;

[0017] If there is a device identification whose allocation flag is the third flag, searching for a second storage area whose allocation flag is the fourth flag;

[0018] A mapping relationship is established between the device identification whose allocation mark is the third mark and the first parameter data of the metering device corresponding to the device identification and the second storage area, and the allocation mark of the device identification is set to the first mark, and the allocation mark of the second storage area is set to the second mark.

[0019] In an embodiment of the present application, identifying a device identification of a metering device and allocating a storage area to the metering device based on the device identification further includes:

[0020] Obtain the set number of identifications for the metering equipment in the identification instruction;

[0021] Each time the allocation of a storage area is completed, the address of the storage area is sent to the metering device corresponding to the storage area, and an identification quantity is recorded;

[0022] When the identified number matches the set number, it is determined that the identification of the metering device is completed.

[0023] In an embodiment of the present application, the operation instruction includes a device identification of the metering device, and data processing corresponding to the operation instruction is performed on the metering device based on the stored first parameter data, including:

[0024] Search the target storage area corresponding to the device identification according to the device identification;

[0025] Data processing corresponding to the operation instruction is performed on the metering device based on the first parameter data in the target storage area.

[0026] In the embodiment of the present application, the data processing corresponding to the operation instruction of the metering device based on the stored first parameter data also includes:

[0027] Acquire second parameter data collected by the measuring device corresponding to the device identifier;

[0028] Determining whether the second parameter data matches the first parameter data;

[0029] If the second parameter data does not match the first parameter data, the second parameter data is used as the updated first parameter data.

[0030] In an embodiment of the present application, data processing corresponding to the operation instruction is performed on the metering device based on the first parameter data in the target storage area, including:

[0031] Reading the set data segment information in the first parameter data to obtain the effective data length of the first parameter data;

[0032] The first parameter data is sampled according to the effective data length to obtain data corresponding to the effective data length.

[0033] In the embodiment of the present application, the operation instruction is a prepaid operation instruction, the prepaid operation instruction includes a device identifier to be recharged, and the metering device is processed with data corresponding to the operation instruction based on the first parameter data in the target storage area, including:

[0034] Determine the total recharge power of the metering device corresponding to the device identifier according to the prepayment operation instruction, and obtain the current power and initial power in the first parameter data;

[0035] Determine the remaining power according to the total recharge power, the current power and the initial power, the total recharge power being the sum of the power to be recharged and the current power;

[0036] Prepayment of metering equipment is performed based on the remaining power.

[0037] In an embodiment of the present application, prepayment processing is performed on a metering device according to the remaining power, including:

[0038] If the remaining power is greater than the first set power, the current power in the first parameter data is updated to the power after charging;

[0039] If the remaining power is less than or equal to the first set power and greater than the second set power, a power purchase reminder is generated, and the second set power is less than the first set power;

[0040] If the remaining power is less than or equal to the second set power, the metering device is tripped according to the trip time of the first parameter data;

[0041] If the remaining power is less than or equal to the third set power, the first parameter data is overdrawn according to the remaining power, and the third set power is less than the second set power.

[0042] A second aspect of the present application provides a control device for a multi-user electric energy meter, which is applied to a host device, wherein the host device communicates with a terminal device and a plurality of metering devices respectively, wherein the plurality of metering devices are used to collect data of the electric energy meter, and one metering device corresponds to one electric energy meter. The control device comprises:

[0043] an identification module, configured to identify a device identification of the metering device in response to an identification instruction for the metering device sent by the terminal device, and allocate a storage area to the metering device based on the device identification, wherein the storage area is used to store first parameter data of the metering device;

[0044] The processing module is used to respond to the operation instruction for the metering device sent by the terminal device and perform data processing corresponding to the operation instruction on the metering device based on the stored first parameter data.

[0045] A third aspect of the present application provides a host device, including:

[0046] a memory configured to store instructions; and

[0047] The processor is configured to call instructions from the memory and implement the above-mentioned control method of the multi-user electric energy meter when executing the instructions.

[0048] In this application, each electric energy meter corresponds to a metering device, and the host device communicates with the terminal device and multiple metering devices. Based on the identification instructions and operation instructions for the metering device sent by the terminal device, the host device completes the storage of the first parameter data of the metering device, and performs data processing based on the stored first parameter data. In this application, there is no need to add a concentrator with high cost and large volume to collect data from multi-user electric energy meters. Through metering devices with small volume and low cost, the host device completes the data processing of multi-user electric energy meters, which can reduce the detection cost of multi-user electric energy meters while improving the detection efficiency.

[0049] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 A schematic diagram of an application scenario of a control method for a multi-user electric energy meter provided in an embodiment of the present application;

[0052] Figure 2 A flow chart of a control method for a multi-user electric energy meter provided in the implementation of this application;

[0053] Figure 3 A schematic diagram of a flow chart of a method for identifying a metering device provided in a specific implementation of the present application;

[0054] Figure 4 A schematic diagram of a communication structure of a local prepaid payment system provided in a specific implementation of the present application;

[0055] Figure 5 A schematic diagram of the structure of a control device for a multi-user electric energy meter provided in an embodiment of the present application;

[0056] Figure 6 This is a structural block diagram of a host device provided in the implementation of this application. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0058] In the description of the present application, it should be understood that the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In the present application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in the present application is not necessarily interpreted as being more preferred or more advantageous than other embodiments. In order to enable any technician in the field to implement and use the present application, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can also be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.

[0059] Typically, in the application field of multi-user electric energy meters, a management device and multiple independent electric energy meters are set up, and a concentrator is added to realize the centralized management of multiple independent electric energy meters by the management device. The concentrator communicates with the electric energy meter to obtain data related to the electric energy meter, and then transmits the collected electric energy meter data to the management device. However, the construction cost of the concentrator is high, and after the concentrator collects the data from the electric energy meter, it needs to process the data before sending it to the management device. For example, the concentrator needs to convert the data into a unified format. In this way, the electric energy meter data needs to be processed multiple times, which increases the amount of calculation and reduces the efficiency of the electric energy meter data processing. Based on this, the embodiment of the present application provides a control method for improving multi-user electric energy meters, so as to improve the centralized management efficiency of multi-user electric energy meters and reduce the cost of management.

[0060] Figure 1 The present invention is a schematic diagram of an application scenario of a control method for a multi-user electric energy meter in an embodiment of the present application. The application scenario includes a host device 110, a plurality of metering devices 120, and a terminal device 130 for executing the control method for a multi-user electric energy meter. The plurality of metering devices 120 are used to collect data from electric energy meters (not shown in the figure), and one metering device 120 corresponds to one electric energy meter. The host device 110 and the plurality of metering devices 120 can be hard-connected. Since the metering device 120 is small in size and low in cost, the detection cost of the multi-user electric energy meter can be reduced.

[0061] As an example, the host device 110 may include a microcontroller unit (MCU), a memory chip, a mobile communication unit, an Ethernet unit, a Bluetooth unit, an alternating current (AC) / direct current (DC) power supply unit, an RS485 communication unit, and a connection interface with multiple metering devices 120. The metering device is composed of an MCU, a memory chip, and a metering unit. The host device 110 is responsible for communicating with the metering device 120 in the downlink and communicating with the terminal device 130 in the uplink.

[0062] The host device 110 supports functions such as power reading and processing of the metering device 120, local prepayment processing, response to parameter configuration of the terminal device 130, remote recharge, and query of the remaining power of each metering device 120. Taking local prepayment processing as an example, the terminal device 130 can be divided into an administrator terminal and a user terminal. The administrator terminal or the user terminal can read the data of the metering device 120 through the host device 110, and complete the recharge processing of the metering device 120 in the host and the device. Therefore, the data processing of the multi-user electric energy meter collected by the metering device 120 in the embodiment of the present application is processed by the host device 110, and is not directly processed by the metering device 120.

[0063] The terminal device 130 can exchange data with the host device through a communication unit such as a mobile communication unit, an Ethernet unit, a Bluetooth unit, and an RS485 communication unit. For example, the mobile communication unit can call the DL645 protocol through the MQTT protocol. Each communication unit can call the underlying DL645 protocol of the host device 110.

[0064] The metering device 120 mainly measures the quantity of the voltage loop and current loop of the electric energy meter and accumulates and counts the electric energy and stores the electric energy data, and responds to the read instructions and control relay instructions sent by the host device 110. The host device 110 and the metering device 120 can communicate with each other through hard connection, and different metering devices 120 can also communicate with each other through hard connection.

[0065] As an example, the hard-connected interface may include a power line, a signal line, and a power line. The hard-connected interface may read data through the ModbusRTU protocol and place the read data in an address table. In this way, all read data and the current state of the metering device 120 may be read through one frame. At the same time, the hard connection may also provide power supply.

[0066] Understandably, Figure 1The electronic devices in the application scenario of the control method for the multi-user electric energy meter shown, or the devices included in the electronic devices, do not constitute a limitation on the embodiments of the present application, that is, the number of devices and types of devices included in the application scenario of the control method for the multi-user electric energy meter, or the number of devices and types of devices included in each device do not affect the overall implementation of the technical solution in the embodiments of the present application, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present application.

[0067] Each electronic device in the embodiments of the present application may be an independent device, or may be a device network or device cluster composed of devices. For example, the electronic devices described in the embodiments of the present application include but are not limited to computers, network hosts, single network devices, multiple network device sets, or cloud devices composed of multiple devices. Among them, cloud devices are composed of a large number of computers or network devices based on cloud computing.

[0068] Those skilled in the art will understand that Figure 1 The application scenario shown in the figure is only an application scenario corresponding to the technical solution of the present application, and does not constitute a limitation on the application scenario of the technical solution of the present application. Other application scenarios may also include Figure 1 More or fewer electronic devices shown in, or electronic device network connection relationships, such as Figure 1 Only one electronic device is shown in the figure. It can be understood that the scenario of the control method of the multi-user electric energy meter can also include one or more other electronic devices, which are not specifically limited here.

[0069] In addition, in the application scenario of the control method of the multi-user electric energy meter in the embodiment of the present application, the electronic device may be provided with a display device, or the electronic device may not be provided with a display device and is communicatively connected to an external display device, and the display device is used to output the result of the execution of the control method of the multi-user electric energy meter in the electronic device. The electronic device may access a background database. The background database may be a local memory of the electronic device or a cloud database set in the cloud, and the background database stores information related to the control method of the multi-user electric energy meter.

[0070] It should be noted that Figure 1 The application scenario of the control method of the multi-user electricity meter shown is merely an example. The application scenario of the control method of the multi-user electricity meter described in the embodiment of the present application is intended to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application.

[0071] Based on the above application scenario, an embodiment of a control method for a multi-user electric energy meter is proposed, which is described in detail below with reference to the accompanying drawings.

[0072] Figure 2This is a flow chart of a control method for a multi-user electric energy meter provided in the implementation of this application. Figure 2 As shown, the control method can be performed by the host device 110 to execute steps 201-202 and other steps, which are described in detail below.

[0073] Step 201: In response to an identification instruction for a metering device sent by a terminal device, identify a device identification of the metering device, and allocate a storage area for the metering device based on the device identification, where the storage area is used to store first parameter data of the metering device.

[0074] In the implementation of this application, the identification instruction refers to an instruction to identify the device identification of the measuring device and allocate a storage area for the measuring device. The device identification is a unique identification that characterizes the identity of the measuring device, so that the host device can distinguish different measuring devices. For example, the device identification can be a serial number (SN) encoding of the measuring device.

[0075] When the host device receives the identification instruction sent by the terminal device, it can perform an identification operation on the metering device, map the device identification of the metering device to a storage area of ​​the host device, and store the first parameter data collected by the metering device corresponding to the device identification. The first parameter data is the parameter data stored in the host device. In an example, the first parameter data may include but is not limited to the recharge amount, recharge times, remaining electric energy, overdraft amount, and relay status of the electric energy meter corresponding to the metering device.

[0076] Step 202: In response to an operation instruction for a metering device sent by a terminal device, data processing corresponding to the operation instruction is performed on the metering device based on the stored first parameter data.

[0077] In the implementation of this application, an operation instruction refers to an instruction for processing the data of a metering device. For example, an operation instruction may be an instruction for reading the electric energy meter of a metering device, processing local prepayment, configuring response parameters, remotely recharging, and querying the remaining electric energy of each metering device. Since the first parameter data of each metering device is stored in the host device, the data processing of the metering device can be completed on the host device side based on the operation instruction sent by the terminal device, so as to improve the data processing efficiency of the metering device.

[0078] In the embodiment of the present application, each electric energy meter corresponds to a metering device, and the host device communicates with the terminal device and multiple metering devices. Based on the identification instructions and operation instructions for the metering device sent by the terminal device, the host device completes the storage of the first parameter data of the metering device, and performs data processing based on the stored first parameter data. The present application does not need to add a concentrator with high cost and large volume to collect data from multi-user electric energy meters. Through metering devices with small volume and low cost, the host device completes the data processing of multi-user electric energy meters, which can reduce the detection cost of multi-user electric energy meters while improving the detection efficiency.

[0079] In step 201 of the embodiment of the present application, multiple metering devices can be identified by electronic key transmission. Specifically, the electronic key containing the verification information is first transmitted to the multiple metering devices in sequence. Then, a storage area is allocated to the metering device based on the reply data frame of the metering device to the verification information.

[0080] In an embodiment of the present application, an electronic key refers to an encryption algorithm used in electronic communications, which is used to transmit encrypted data and perform encryption and decryption operations. The electronic key may include verification information. If the metering device and the host device share the same electronic key, a corresponding reply data frame can be generated based on the verification information and returned to the host device. The host device then allocates a storage area for each metering device. By transmitting the electronic key, the data of the host device can be transmitted to multiple metering devices in sequence, and only the metering device that matches the host device can decrypt the data of the host device. In this way, the security of the host's identification of the metering device can be improved, and without the need for additional verification steps, the host's identification efficiency of the metering device can be improved.

[0081] In the embodiment of the present application, the reply data frame may include the device identification of the metering device. When the host device receives the reply data frame returned by the metering device, it first determines whether the device identification in the reply data frame matches the stored device identification.

[0082] If the device identifier in the reply data frame matches the stored device identifier, it means that the device identifier already has a corresponding storage area. Therefore, the host device can read the storage area corresponding to the device identifier and establish a mapping relationship between the device identifier and the first parameter data corresponding to the device identifier and the corresponding storage area.

[0083] If the device identification in the reply data frame does not match the stored device identification, it means that the device identification has not yet been assigned a storage area. At this time, the host device first determines whether there is an idle first storage area. The first storage area identifies an idle storage area in the host device.

[0084] If there is an idle first storage area, a mapping relationship can be established between the device identification and the first parameter data of the metering device corresponding to the device identification and the first storage area. Then, the allocation flag of the device identification is set to the first flag, and the allocation flag of the first storage area is set to the second flag. The first flag indicates that the device has been allocated. The second flag indicates that the first storage area has been allocated. In one example, the first flag can be set to 1, and the second flag can also be set to 1.

[0085] If there is no free first storage area, the allocation flag of the device identification can be set to a third flag. The third flag indicates that a specific storage area is allocated to the device identification and further allocation of the storage area is required. For example, the third flag can be set to 0XFF.

[0086] In step 201 of the embodiment of the present application, the terminal device may receive an input of a set number of metering devices, and generate an identification instruction based on the set number, wherein the set number indicates the number of metering devices to be identified. After the host device obtains the set number of metering devices to be identified in the identification instruction, it may start the identification operation of the metering devices.

[0087] When the host device completes the allocation of a storage area, the address of the storage area can be sent to the metering device corresponding to the storage area. And an identification number is recorded. When the identification number matches the set number, for example, the identification number is equal to the set number, it can be determined that the identification of the metering device is completed. After the identification of the metering device is completed, it is determined whether there is a device identification with an allocation mark of the third mark, so as to further indicate that the storage area has been allocated to the device with the allocation mark of the third mark.

[0088] If there is a device identification with an allocation mark of the third mark, search for the second storage area with an allocation mark of the fourth mark. The fourth mark refers to a storage area that represents that the storage area is registered but not allocated. The second storage area is a storage area with the fourth mark. Therefore, a mapping relationship can be established between the device identification with the allocation mark of the third mark and the first parameter data of the metering device corresponding to the device identification and the second storage area. Then, the allocation mark of the device identification is set to the first mark, and the allocation mark of the second storage area is set to the second mark. It means that the device identification has been allocated, and the second storage area has also been allocated.

[0089] In the embodiment of the present application, the first storage area and the second storage area are collectively referred to as the storage area of ​​the host device. In the process of establishing a mapping relationship between the device identification of the metering device and the storage area, the data of the storage area can be initialized first, and then the device identification and the first parameter data corresponding to the device identification are initialized to the storage area. Then, the allocation flag of the storage area is set to the second flag. When the first parameter data corresponding to the device identification is subsequently read, the first parameter data stored in the storage area can be updated based on the specific situation of the reading. In this way, the data collected by each metering device can be flexibly managed.

[0090] Figure 3 This is a flow chart of a method for identifying a metering device provided in a specific implementation of this application. Figure 3 As shown, taking the device identifier as SN code, the first mark as 1, the second mark as 2, the third mark as 0XFF, and the fourth mark as 0 as an example, the method for the host device to identify the metering device may include the following steps.

[0091] Step 1: The host device transmits the electronic key to the first device. At the same time, the variable A for the number of metering devices is set to 0, and the allocation flag C for each storage area is set to 0.

[0092] Step 2: The metering device obtains the electronic key and generates a reply data frame. Only the metering device that obtains the electronic key is allowed to respond to the read device information frame sent by the host device to generate a reply data frame corresponding to the read device information frame. The reply data frame contains the unique identification code of the metering device, that is, the SN code.

[0093] Step 3: The host device receives the reply data frame and determines whether the SN code in the storage area of ​​the host device contains the SN code in the reply data frame. If found, jump to step 4.

[0094] If not found, it is determined whether there is an empty storage area in the storage area. If there is an empty area, the host device finds the storage area where the SN code has not been registered and initializes the data in this area. The SN code and the first parameter data are initialized to this area, and the allocation flag of the area is set to 1.

[0095] If there is no empty storage area, set the allocation flag of the current SN code to 0XFF, store it in a specific storage area, and jump to step 5.

[0096] Step 4: The host device reads the correspondence between the SN number and the storage area and saves it in the random access memory (RAM) of the MCU, and sets the allocation mark C of the current location storage area to the real allocation address.

[0097] Step 5: The host device sends an address allocation frame to the metering device that has obtained the electronic key, and then increases the variable A of the metering device identification number by 1. The metering device that has obtained the electronic key responds to the device setting frame and passes the electronic key to the next metering device.

[0098] Step 6: Determine whether A is equal to the preset quantity B. If not, jump to step 2, otherwise go to step 7.

[0099] Step 7: Check whether the allocation flag C of all SN codes has 0XFF. If not, jump to step 8. Otherwise, the host device searches for the location where the allocation flag C is 0 in the storage area. Initialize the data in this area. Then, initialize the SN code and the first parameter data to this second storage area, and set the allocation flag of the second area to 1.

[0100] Step 8: When reading the first parameter data, for the device with the allocation flag of 1, update the electric energy data of the metering device and clear the allocation flag.

[0101] The embodiment of the present application can quickly and accurately allocate corresponding storage areas for data collected by multiple metering devices by mapping storage areas with device identifiers. Moreover, if the metering device changes position, increases the number of metering devices, or decreases the number of metering devices, the changes can be made promptly and quickly.

[0102] In an embodiment of the present application, the operation instruction sent by the terminal device to the host device may include the device identification of the metering device. In step 202, first, the target storage area corresponding to the device identification can be searched according to the device identification. Among them, the target storage area is the storage area corresponding to the device identification. Then, based on the first parameter data in the target storage area, the metering device performs data processing corresponding to the operation instruction. In this way, the data processing operation can be completed on the host device, which improves the efficiency of data processing.

[0103] In an embodiment of the present application, the host device can periodically obtain the data collected by the metering device, and then update the first parameter data stored in the corresponding storage area in real time. In response to the operation instruction, the host device can read the data of the metering device. However, the data of the metering device read may be inconsistent with the first parameter data stored in advance. Therefore, in step 202, the second parameter data collected by the metering device corresponding to the device identifier can be obtained first. Among them, the second parameter data is the parameter data obtained by the host device reading the data of the metering device. Then, it is determined whether the second parameter data matches the first parameter data. If the second parameter data does not match the first parameter data, the second parameter data is used as the updated first parameter data. In this way, the accuracy of the first parameter data stored in the host device can be improved. In addition, if there is a fault in the metering device, the first parameter data stored in the host device can be used for calculation to ensure that the data of the metering device is not lost, thereby improving the security of the data.

[0104] In the embodiment of the present application, the reading of data can be divided into two steps. First, the set data segment information in the first parameter data can be read to obtain the effective data length of the first parameter data. Then, the first parameter data is sampled according to the effective data length to obtain data corresponding to the effective data length. At the same time, if it is necessary to synchronize the relay state of the metering device stored in the host device and the current relay state of the metering device, the second position of the message queue where the data is located can be inserted to synchronize the relay action in time.

[0105] As an example, taking the metering device supporting Modbus address as an example, it is assumed that the first parameter data includes Modbus address, and the Modbus address includes three areas, namely, data segment information area, electric quantity and energy area and relay status area. In the relay status area, the host device and multiple metering devices communicate by means of message queues. The Modbus address is used to identify different registers of the metering device, and each register stores data of a corresponding type. Assuming that the first 8 registers of the 9000H segment in the Modbus address are read first, the device type, device serial number, and valid data length of the metering device can be obtained. Assume that the data area length can be obtained to be N. For example, the valid data length of the single-phase register address is 28, and the valid data length of the three-phase register address is 76. The host device sends the instruction frame: metering device address + 03 9000 00 08 + CRC16 check low byte + CRC16 check high byte. Then, the entire address table is read cyclically. Specifically, according to the valid data length of the above register, all data is read. At this time, the command frame sent by the host device is: metering device address + 03 90 00 00 (data length N) + CRC16 check low byte + CRC16 check high byte (data length N + information length 8). The Modbus address also includes power data, electric energy data, and relay status. The electric energy data of the single-phase three-phase module are all pulse constant numbers. For example, the real electric energy data = electric energy processing / pulse constant. At present, the storage space of single-precision floating point numbers and 32-bit integer data is 4 bytes, but the single-precision floating point number has only 7 effective digits, while 32-bit integer data does not have data accuracy issues. The electric energy data in the parameter data in the storage area also directly stores the electric energy data of the corresponding pulse constant number. The minimum recharge processing of the terminal user is 0.01kWh, and the recharge power is the real recharge power*100. When calculating the remaining power, all are converted into floating point operations.

[0106] The embodiment of the present application can also set a synchronization frame in the relay of the metering device. Specifically, the synchronization frame is inserted into the second frame at the head of the queue of the message queue. This operation does not affect the parsing of the head message. This is because the head message is divided into two steps: sending and receiving. If it is inserted into the head, the sending is completed. However, if the reception is not completed, it will cause the receiving parsing function to become a new inserted element, resulting in incorrect parsing. By inserting it into the second frame at the head of the queue, and then responding to the completion of the current synchronization frame, the queue element will be deleted, and the second frame will become the first frame, which can ensure that the synchronization frame can get a timely response. As an example, the command frame that the host device can send is: metering device address + 10 90 23 000102 00 + relay status + CRC16 check low byte + CRC16 check high byte.

[0107] The operation instructions of the embodiment of the present application may include but are not limited to timeout control, overload protection, forced control function, etc. The following takes the operation instruction as a prepayment operation instruction as an example to describe the prepayment scenario of the metering device.

[0108] Each metering device only participates in the cumulative statistical processing of electric energy data, and does not participate in the local prepayment determination processing. The host device determines the local prepayment of each metering device to obtain the relay status of each metering device, and synchronizes it to the relay output unit of the metering device. There is a QR code on the surface of the host device, and each metering device also has a QR code. The content of each QR code is a 12-digit SN code, and the SN codes of the host device and the metering device are both unique codes. The serial numbers of the host device and the metering device are 645 addresses. In the 645 address recognition stage of parsing the operation command, first determine whether the address is the host device address or the metering device address. If it is a metering device address, the serial number of the storage area of ​​the cascaded device is returned (consistent with the serial number of the storage area when the metering device is identified). The 645 instructions for metering devices supported by the host device include: remaining power instructions, recharge time series records (Sequence of The host device's 645 instructions include: quantity instructions for metering equipment, information 1 instructions, slave information 2 instructions, etc. The reply data frame returned by the metering equipment may include the SN code of the metering equipment, the equipment type, and the system status word, where the system status word can feedback the online and offline status. The equipment type can be obtained as a three-phase metering equipment or a single-phase metering equipment.

[0109] Figure 4 This is a schematic diagram of the communication structure of a local prepaid system provided in a specific implementation of this application. Figure 4 As shown. The terminal devices of the local prepaid system include the administrator terminal and the user terminal. The terminal device reads the data of the metering device and processes the recharge of the metering device through the host device, not directly with the metering device. The terminal device can communicate with the host device through the mobile communication unit, Ethernet unit, Bluetooth unit, RS485 communication unit. The mobile communication unit calls the DL645 protocol through the MQTT protocol. Figure 4 It can be seen that no matter which communication method is used, the underlying DL645 protocol of the host device is ultimately called.

[0110] As an example, when the metering device of a multi-user electric energy meter is connected to the host device, it can be entered by the administrator terminal, and the process is as follows.

[0111] Step 1: Open the mobile APP scanning function, scan the two-dimensional SN1 of the host device, use the SN1 code to read the set number of measuring devices, and read the current number of measuring devices. If the number of measuring devices currently read is consistent with the actual number of measuring devices, jump to step 2, otherwise send the set number of measuring devices to the host device.

[0112] Step 2: Read the information frame 1 and information frame 2 sent by the metering device. Each information frame contains the device information of 30 metering devices. Each device information includes SN code, device type, and device status word.

[0113] Step 3: According to the preset number n of metering devices, take the first n numbers from the 60 information frames in information frame 1 and information frame 2 and enter them into the host device. If there is an abnormality in the record, for example, a metering device is offline or a metering device is not identified, it will be fed back to the administrator terminal.

[0114] Step 4: Bind the SN codes of all metering devices to the SN1 code of the host device.

[0115] The recharge and billing of the metering device are all processed on the host device side. During the recharge process, the data needs to be sent to the host device through the user terminal. The interactive data needs to contain the SN code of the metering device, so that the host device can identify the corresponding metering device and perform operations.

[0116] The command frame delivered by the local prepaid processing function contains a ciphertext, which can be encrypted using a symmetric encryption algorithm (e.g., Advanced Encryption Standard, AES). The encryption key is associated with the SN code and the operation code. The plaintext before encryption may include the timestamp, random number, recharge amount, and CRC check of the plaintext. The ciphertext is obtained after encryption with the encryption key and AES. After the device obtains the 645 frame, it reversely decrypts it into plaintext according to the agreed key. In addition, the plaintext needs to be checked. For example, whether the CRC check is correct. The recharge plaintext is compared with the 30 most recent recharge records saved. If the most recent 30 have the same recharge record, recharge is not performed. If the CRC check and recharge record are correct, recharge is performed.

[0117] In an embodiment of the present application, the prepaid operation instruction may include an identification of the device to be recharged. In step 202, the total recharge power of the metering device corresponding to the device identification can be determined according to the prepaid operation instruction, and the current electric energy and the initial electric energy in the first parameter data can be obtained. Then, the remaining power is determined according to the total recharge power, the current electric energy and the initial electric energy, and the total recharge power is the sum of the power to be recharged and the current electric energy. Next, the metering device is prepaid according to the remaining power. In an embodiment of the present application, there may be a situation where the remaining power is still too low, and it is necessary to promptly issue an alarm reminder to the recharged user terminal.

[0118] Specifically, if the remaining power is greater than the first set power, the current power in the first parameter data is updated to the power after charging. The first set power is a threshold for determining whether an alarm is required. If the remaining power is greater than the first set power, electricity can be used normally without an alarm.

[0119] If the remaining power is less than or equal to the first set power and greater than the second set power, a power purchase reminder is generated, and the second set power is less than the first set power. The second set power is the threshold for determining whether a trip operation is required. If the remaining power is greater than the second set power, the trip operation may not be performed, but the user is reminded to purchase power first.

[0120] If the remaining power is less than or equal to the second set power, at this time, it is necessary to perform a tripping operation, that is, a power outage process is performed to remind the user that the current power is insufficient. Therefore, the metering device can be tripped according to the tripping time of the first parameter data. As an example, first determine whether the tripping time is 0. If so, directly perform the tripping operation and set the tripping flag. If not, continue to determine whether the flag of the tripping time is a specific flag. If not, perform the tripping process and close the switch after the set time.

[0121] If the remaining power is less than or equal to the third set power, the first parameter data is overdrawn according to the remaining power, and the third set power is less than the second set power. The third set power is a threshold for determining whether to perform overdraw. In addition, if the remaining power is inconsistent with the remaining power in the storage area, the information of the remaining power in the storage area is updated.

[0122] As an example, the local prepayment processing method may include the following steps.

[0123] Step 1: Read all data of the metering device read by the host device, determine whether the electric energy data in the data returned by the metering device is consistent with the electric energy data in the first parameter data in the storage area, and if not, update the first parameter data in the storage area to the electric energy data returned by the metering device.

[0124] Step 2: Check whether the prepayment unified setting of all metering devices is turned on. If it is turned on and the prepayment type of all metering devices is enabled, jump to step 3. If it is turned on and the prepayment type of all metering devices is not enabled, end the process. If it is not turned on and the prepayment type of the metering device is enabled, jump to step 3. If it is not turned on and the prepayment type of the metering device is not enabled, end the process.

[0125] Step 3: Calculate the current remaining power = total recharge power - (current power - initial power saved when opening the account). Determine whether the remaining power is greater than the third set power 0. If less than 0, jump to step 8. If greater than 0, continue to step 4.

[0126] Step 4: Check if the remaining power is greater than the first set power. If so, the display is normal. Jump to step 9. If not, continue to step 5.

[0127] Step 5: Check whether the remaining power is greater than the second set power and less than or equal to the first set power. If so, set the alarm flag 1 to 1 and prompt the purchase power identifier. Jump to step 9. If not, set the alarm flag 2 to 1 and continue to step 6.

[0128] Step 6: Determine whether the opening time is 0. If so, set the opening flag and jump to step 9. If not, continue to step 7.

[0129] Step 7: Determine whether the opening time mark is the set mark. If it is, continue to step 9 and open the circuit breaker. If not, close the circuit breaker after the agreed time and jump to step 8.

[0130] Step 8: Determine whether the absolute value of the remaining power is greater than the overdraft amount. If not, jump to step 9. If yes, set the overdraft flag to 1 and continue to step 9.

[0131] Step 9: If the remaining power is inconsistent with the remaining power in the storage area, save the current remaining power to the storage area and end.

[0132] In the embodiment of the present application, the local fee control function can be turned on or off. In the all-together control mode, it is possible to configure whether all user electricity meters have fee control or not. In the single control mode, whether the user's electricity meter has fee control is determined by the configuration of the corresponding user. When entering the overdraft and exceeding the overdraft power threshold, the switch will no longer be automatically closed after the power is turned off. At this time, only recharge is allowed, and the recharge amount must be greater than the overdraft amount before the switch can be closed.

[0133] In the embodiment of the present application, the operation instruction may also be a power reset instruction, and the power reset operation is completed through the following steps.

[0134] Step 1: After receiving the power reset instruction of a metering device sent by the terminal device, the host device resets the storage area. For example, the total recharge power is reset, the total number of power purchases is reset, and the power account opening power reading flag is set to 1.

[0135] Step 2: Clear the recharge SOE record.

[0136] Step 3: When reading the electric energy data of the metering device, determine whether the electric energy account reading flag is 1. If it is 1, save the account electric energy as the total electric energy of the current device, and set the account electric energy reading flag to 0.

[0137] In the embodiment of the present application, the operation instruction can also be a timing control instruction. When the timing control function is enabled, by setting the date and time of the closing control, and the date and time of the disconnection control, the power supply management of the corresponding time can be realized to control the power consumption management of the user. During the timing control, all metering devices are controlled. The host device has a real-time time function. When the timing control function is turned on, it is first determined that the current time is after the power-on time and before the power-off time, and the timing control closing state is set to closed, and other cases are separated.

[0138] In the embodiment of the present application, the operation instruction can also be an overload protection instruction. The user's maximum load power threshold can be set. When the actual power is detected to be greater than the threshold and lasts for a period of time (the delay time can be set), the power supply circuit of the household is automatically cut off. After a period of threshold delay (the reclosing time can be set), the power supply can be automatically restored. When the number of restorations exceeds the set number, the power supply will no longer be restored, and the power supply can only be restored after sending a closing instruction.

[0139] In the implementation of this application, the operation instruction can also be a forced control instruction. The control mode of the host device can be configured as a forced control mode, which can be used for all forced control or for a single customer. In the all-forced control mode, after the forced control mode is enabled, all user electricity meters will force power supply or power-off control to all users according to the preset closing or closing instructions. In the single-customer forced control mode, after the forced control mode is enabled, only the electricity consumption of the corresponding user is controlled. When the forced control is turned on, prepayment control, timing control, overload protection functions, etc. are invalid, but if the fee control function is enabled, the billing function still exists.

[0140] Figure 5 FIG. 5 is a schematic diagram of a control device 500 for a multi-user electric energy meter provided in an embodiment of the present application. The control device 500 is applied to Figure 1 The host device shown. Figure 5As shown, the control device 500 may include an identification module 501 and a processing module 502. The identification module 501 is used to respond to an identification instruction for a metering device sent by a terminal device, identify a device identification of the metering device, and allocate a storage area for the metering device based on the device identification, and the storage area is used to store first parameter data of the metering device. The processing module 502 is used to respond to an operation instruction for the metering device sent by the terminal device, and perform data processing corresponding to the operation instruction on the metering device based on the stored first parameter data.

[0141] Among them, the identification module 501 and the processing module 502 can be used to execute steps 201-202 in the embodiment corresponding to the above-mentioned multi-user electricity meter control method respectively. For the specific implementation methods of these modules and more details, please refer to the corresponding method part, which will not be repeated here.

[0142] Figure 6 1 is a structural block diagram of a host device 110 provided in the implementation of this application. Figure 6 As shown, the embodiment of the present application provides a host device 110, which may include:

[0143] Memory 601, configured to store instructions; and

[0144] The processor 602 is configured to call instructions from the memory 601 and implement the above-mentioned control method of the multi-user electric energy meter when executing the instructions.

[0145] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute the above-mentioned control method for a multi-user electric energy meter.

[0146] Since the instructions stored in the host device and the machine-readable storage medium can execute the steps in any method for controlling a multi-user electric energy meter provided in the embodiments of the present application, the beneficial effects that can be achieved by any method for controlling a multi-user electric energy meter provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0147] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0148] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0151] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0152] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0153] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated communication signals and carrier waves.

[0154] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0155] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A control method for a multi-user electric energy meter, characterized in that: Applied to a host device, the host device communicates with a terminal device and multiple metering devices respectively, the multiple metering devices are used to collect data of an electric energy meter, one metering device corresponds to one electric energy meter, and the control method includes: In response to an identification instruction for the metering device sent by the terminal device, identifying a device identification of the metering device, and allocating a storage area for the metering device based on the device identification, wherein the storage area is used to store first parameter data of the metering device; In response to an operation instruction for the metering device sent by the terminal device, data processing corresponding to the operation instruction is performed on the metering device based on the stored first parameter data.

2. The control method according to claim 1, characterized in that: The identifying the device identification of the metering device and allocating a storage area to the metering device based on the device identification includes: sequentially transmitting the electronic key containing the verification information to the plurality of said metering devices; A storage area is allocated to the metering device based on a reply data frame of the metering device to the verification information.

3. The control method according to claim 2, characterized in that: The reply data frame includes a device identification of the metering device, and the allocating a storage area to the metering device based on the reply data frame of the metering device to the verification information includes: When receiving the reply data frame returned by the metering device, determining whether the device identification in the reply data frame matches the stored device identification; If the device identification in the reply data frame does not match the stored device identification, determining whether there is an idle first storage area; If there is an idle first storage area, a mapping relationship is established between the device identification and the first parameter data of the metering device corresponding to the device identification and the first storage area, and the allocation mark of the device identification is set to the first mark, and the allocation mark of the first storage area is set to the second mark.

4. The control method according to claim 3, characterized in that: The allocating a storage area to the metering device based on the reply data frame of the metering device to the verification information further includes: If there is no free first storage area, setting the allocation flag of the device identification to a third flag; After the identification of the metering device is completed, determining whether there is a device identifier whose allocation mark is the third mark; If there is a device identifier whose allocation mark is the third mark, searching for a second storage area whose allocation mark is the fourth mark; A mapping relationship is established between the device identification whose allocation mark is the third mark and the first parameter data of the measuring device corresponding to the device identification and the second storage area, and the allocation mark of the device identification is set to the first mark, and the allocation mark of the second storage area is set to the second mark.

5. The control method according to any one of claims 2 to 4, characterized in that: The step of identifying a device identification of the metering device and allocating a storage area to the metering device based on the device identification further includes: Obtaining a set number of identifications for the metering device in the identification instruction; Each time the allocation of a storage area is completed, the address of the storage area is sent to the metering device corresponding to the storage area, and an identification quantity is recorded; When the identified number matches the set number, it is determined that the identification of the metering device is completed.

6. The control method according to claim 1, characterized in that: The operation instruction includes a device identification of the metering device, and performing data processing corresponding to the operation instruction on the metering device based on the stored first parameter data includes: Searching for a target storage area corresponding to the device identification according to the device identification; Data processing corresponding to the operation instruction is performed on the metering device based on the first parameter data in the target storage area.

7. The control method according to claim 6, characterized in that: The performing data processing corresponding to the operation instruction on the metering device based on the stored first parameter data further includes: Acquire second parameter data collected by the measuring device corresponding to the device identifier; determining whether the second parameter data matches the first parameter data; If the second parameter data does not match the first parameter data, the second parameter data is used as the updated first parameter data.

8. The control method according to claim 6, characterized in that: The performing data processing corresponding to the operation instruction on the metering device based on the first parameter data in the target storage area includes: Reading the set data segment information in the first parameter data to obtain the effective data length of the first parameter data; The first parameter data is sampled according to the effective data length to obtain data corresponding to the effective data length.

9. The control method according to any one of claims 6 to 8, characterized in that: The operation instruction is a prepayment operation instruction, the prepayment operation instruction includes a device identifier to be recharged, and the data processing corresponding to the operation instruction on the metering device based on the first parameter data in the target storage area includes: Determine the total recharge power of the metering device corresponding to the device identifier according to the prepayment operation instruction, and obtain the current power and initial power in the first parameter data; Determine the remaining power according to the total recharge power, the current power and the initial power, the total recharge power being the sum of the power to be recharged and the current power; Prepayment processing is performed on the metering device according to the remaining power.

10. The control method according to claim 9, characterized in that: The prepayment processing of the metering device according to the remaining power includes: If the remaining power is greater than the first set power, updating the current power in the first parameter data to the power after charging; If the remaining power is less than or equal to the first set power and greater than the second set power, a power purchase reminder is generated, and the second set power is less than the first set power; If the remaining power is less than or equal to the second set power, the metering device is tripped according to the trip time of the first parameter data; If the remaining power is less than or equal to a third set power, the first parameter data is overdrawn according to the remaining power, and the third set power is less than the second set power.

11. A control device for a multi-user electric energy meter, characterized in that: Applied to a host device, the host device communicates with a terminal device and multiple metering devices respectively, the multiple metering devices are used to collect data of an electric energy meter, one metering device corresponds to one electric energy meter, and the control device includes: an identification module, configured to identify a device identification of the metering device in response to an identification instruction sent by the terminal device for the metering device, and allocate a storage area to the metering device based on the device identification, wherein the storage area is used to store first parameter data of the metering device; A processing module is used to respond to an operation instruction for the metering device sent by the terminal device and perform data processing corresponding to the operation instruction on the metering device based on the stored first parameter data.

12. A host device, characterized in that: include: a memory configured to store instructions; as well as A processor is configured to call the instruction from the memory and implement the control method of the multi-user electric energy meter according to any one of claims 1 to 10 when executing the instruction.