Automatic identification method of smart electric energy meter extension module and smart electric energy meter

The method and system in smart energy meters automatically identify and authenticate expansion modules using pre-stored registration information, addressing the challenge of unknown types and ensuring reliable operation and secure integration.

CN115248344BActive Publication Date: 2024-12-06内蒙古电力(集团)有限责任公司电能计量分公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110450337.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-25
Publication Date
2024-12-06
Estimated Expiration
2041-04-25

AI Technical Summary

Technical Problem

Existing smart energy meters face challenges in efficiently identifying and securely authenticating various types of expansion modules, particularly unknown types, which hinders seamless integration and reliable operation.

Method used

A method and system for automatically identifying and authenticating expansion modules in smart energy meters by pre-storing registration information, including module type and encryption methods, allowing for plug-and-play functionality and secure communication channels.

Benefits of technology

Enables efficient identification and secure authentication of expansion modules, ensuring reliable operation even with unknown types, and facilitating seamless integration through pre-stored registration information and appropriate security authentication methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115248344B_ABST
    Figure CN115248344B_ABST
Patent Text Reader

Abstract

The present invention provides a method for automatically identifying an extension module of a smart electric energy meter and a smart electric energy meter, wherein the method comprises: receiving an extension module arrival signal and acquiring extension module information; acquiring registration information corresponding to the extension module information in an extension module information library, the registration information being acquired and stored in the extension module information library before receiving the extension module arrival signal; determining the module type of the extension module according to the registration information corresponding to the extension module information in the extension module information library; and establishing a communication channel according to the module type of the extension module. By using a registration mechanism of acquiring registration information and storing the registration information, when an extension module arrival signal generated by an unknown extension module is received, the extension module can be identified according to the registration information in the module information library, and even if the extension module generating the arrival signal is an unknown extension module, plug-and-play of the extension module can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart electric energy meters, and in particular to a method for automatically identifying an expansion module of a smart electric energy meter and a smart electric energy meter. Background Art

[0002] Smart energy meters are composed of metering modules, management modules, and expansion modules, and each module is relatively independent in structure. As the "brain" of the IoT energy meter, the management module is responsible for interacting with and managing the expansion modules. When the management module interacts with and manages the expansion modules, it is necessary to identify the expansion modules and perform security authentication on the expansion modules. There are many types of expansion modules, such as load sensing modules, orderly charging modules, power quality monitoring modules, Bluetooth smart circuit breakers, Bluetooth smart locks, etc. In addition, with the development of technology, the types of expansion modules are constantly increasing. For currently unknown types of expansion modules, how to efficiently identify and use various modules is a problem that needs to be solved urgently. Summary of the invention

[0003] Therefore, the present invention provides a method for automatically identifying an expansion module of a smart electric energy meter and a smart electric energy meter.

[0004] A first aspect of the present invention provides a method for automatically identifying an extension module of a smart electric energy meter, comprising: receiving an extension module arrival signal to obtain extension module information; obtaining registration information corresponding to the extension module information in an extension module information library, the registration information being obtained and stored in the extension module information library before receiving the extension module arrival signal; determining a module type of the extension module according to the registration information corresponding to the extension module information in the extension module information library; and establishing a communication channel according to the module type of the extension module.

[0005] Optionally, in the automatic identification method of the smart electric energy meter extension module provided by the present invention, the registration information also includes the encryption method of the extension module. The automatic identification method of the smart electric energy meter extension module provided by the present invention also includes: determining the encryption method of the extension module according to the registration information corresponding to the extension module information in the extension module information library; and authenticating the extension module using a security authentication method corresponding to the encryption method.

[0006] Optionally, in the automatic identification method of the smart electric energy meter extension module provided by the present invention, a communication channel is established according to the module type of the extension module, including: determining whether the extension module type is a Class B extension module; if the extension module type is a Class B extension module, determining whether the extension module type is a metering type extension module; if the extension module type is a metering type extension module, establishing a communication channel between the extension module and the metering module.

[0007] Optionally, in the automatic identification method of the smart electric energy meter extension module provided by the present invention, a communication channel is established between the extension module and the metering module, including: determining the logical address of the extension module according to the registration information corresponding to the extension module information in the extension module information library; if the logical address of the extension module is the same as the logical address of the extension module for which the communication channel has been established, assigning a new logical address to the extension module; and establishing a communication channel with the metering module according to the new logical address.

[0008] Optionally, in the method for automatic identification of expansion modules of smart electric energy meters provided by the present invention, registration information is generated through the following steps: receiving basic information of the expansion module, the basic information including the module type of the expansion module; determining the category identification number of the expansion module according to predefined identification rules and the module type of the expansion module, the predefined identification rules including the category identification numbers corresponding to each module type; generating registration information according to the basic information and category identification number of the expansion module.

[0009] The second aspect of the present invention provides a smart electric energy meter, including a management module, a metering module and an extension module connection device, wherein the management module includes: a module arrival signal detection module, used to receive an extension module arrival signal and obtain extension module information; a registration information acquisition module, used to obtain registration information corresponding to the extension module information in an extension module information library, and the registration information is obtained and stored in the extension module information library before receiving the extension module arrival signal; an extension module identification module, used to determine the module type of the extension module according to the registration information corresponding to the extension module information in the extension module information library; and a communication channel connection module, used to establish a communication channel according to the module type of the extension module.

[0010] Optionally, in the smart electric energy meter provided by the present invention, the registration information also includes the encryption method of the extension module, and the management module also includes: an encryption method confirmation module, used to determine the encryption method of the extension module according to the registration information corresponding to the extension module information in the extension module information library; a security authentication module, used to authenticate the extension module using a security authentication method corresponding to the encryption method.

[0011] Optionally, in the smart electric energy meter provided by the present invention, the communication channel connection module includes: a first judgment submodule, used to judge whether the extension module type is a Class B extension module; a second judgment submodule, if the extension module type is a Class B extension module, the second judgment submodule is used to judge whether the extension module type is a metering type extension module; a communication channel establishment submodule, if the extension module type is a metering type extension module, the communication channel establishment submodule is used to establish a communication channel between the extension module and the metering module.

[0012] Optionally, in the smart electric energy meter provided by the present invention, the communication channel establishment submodule includes: a logical address acquisition unit, used to determine the logical address of the extension module according to the registration information corresponding to the extension module information in the extension module information library; a logical address allocation unit, if the logical address of the extension module is the same as the logical address of the extension module for which the communication channel has been established, the logical address allocation unit is used to allocate a new logical address to the extension module; a communication channel establishment unit, used to establish a communication channel with the metering module according to the new logical address.

[0013] Optionally, the smart electric energy meter provided by the present invention also includes: an information receiving module, used to receive basic information of the extension module, the basic information including the module type of the extension module; a category identification number generating module, used to determine the category identification number of the extension module according to predefined identification rules and the module type of the extension module, the predefined identification rules including the category identification numbers corresponding to each module type; a registration information generating module, used to generate registration information according to the basic information and category identification number of the extension module.

[0014] The technical solution of the present invention has the following advantages:

[0015] 1. The automatic identification method of the smart electric energy meter extension module provided by the present invention first obtains the registration information of the extension module before receiving the extension module arrival signal, and stores the registration information in the module information library, the registration information includes the module type of the extension module, after receiving the extension module arrival signal and obtaining the module extension information of the extension module, the module type of the extension module can be determined by the registration information corresponding to the extension module information, and a communication channel is established according to the module type of the extension module, thereby completing the identification and use of the extension module. The automatic identification method of the smart electric energy meter extension module provided by the present invention, through the registration mechanism of obtaining the registration information and storing the registration information, when receiving the extension module arrival signal generated by an unknown extension module, the extension module can be identified according to the registration information in the module information library, even if the extension module that generates the arrival signal is an unknown extension module, the plug-and-play of the extension module can be realized.

[0016] 2. In the automatic identification method for expansion modules of smart electric energy meters provided by the present invention, the registration information pre-acquired and stored includes the encryption method of the expansion module. Since the encryption methods of different expansion modules are different, if a security authentication method that does not correspond to the encryption method is used to authenticate the expansion module, the authentication result obtained is not reliable. In the automatic identification method for expansion modules of smart electric energy meters provided by the present invention, the registration information includes the encryption method of the expansion module. After receiving the signal that the expansion module is in place, the encryption method of the expansion module can be quickly determined according to the registration information, so that the security authentication method corresponding to the encryption method can be selected to perform security authentication on the expansion module. Therefore, by implementing the present invention, the security authentication of the expansion module can be quickly completed, and the security authentication result is more accurate and reliable.

[0017] 3. The smart energy meter provided by the present invention first obtains the registration information of the extension module before receiving the extension module arrival signal, and stores the registration information in the module information library, wherein the registration information includes the module type of the extension module, thereby completing the identification of the extension module. The smart energy meter provided by the present invention, through the registration mechanism of obtaining and storing the registration information, can identify the extension module according to the registration information in the module information library when receiving the extension module arrival signal generated by an unknown extension module, and even if the extension module generating the arrival signal is an unknown extension module, the plug-and-play of the extension module can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] 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.

[0019] Figure 1 It is a flowchart of a specific example of the method for automatically identifying an extension module of a smart electric energy meter in an embodiment of the present invention;

[0020] Figure 2 It is a flowchart of a specific example of the method for automatically identifying an extension module of a smart electric energy meter in an embodiment of the present invention;

[0021] Figure 3 It is a flowchart of a specific example of the method for automatically identifying an extension module of a smart electric energy meter in an embodiment of the present invention;

[0022] Figure 4 It is a block diagram of information exchange between the management module, the metering module, and each expansion module in the smart electric energy meter in an embodiment of the present invention;

[0023] Figure 5A principle block diagram of a specific example of an intelligent electric energy meter expansion module in an embodiment of the present invention;

[0024] Figure 6 It is a principle block diagram of a specific example of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] In the description of the present invention, it should be noted that the terms “first”, “second” and “third” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0027] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0028] The embodiment of the present invention provides a method for automatically identifying an expansion module of a smart energy meter, which can be applied to a management module in a smart energy meter, such as Figure 1 As shown, including:

[0029] Step S10: receiving a signal indicating that the extension module has arrived, and obtaining extension module information.

[0030] In an optional embodiment, the extension module arrival signal refers to the signal generated when the extension module is inserted into the smart power meter. The management module in the smart power meter will monitor the extension module arrival signal in real time. After the extension module is connected, the arrival signal changes from a high level to a low level.

[0031] Step S20: obtaining registration information corresponding to the extension module information in the extension module information library. The registration information is obtained and stored in the extension module information library before receiving the extension module arrival signal. The registration information includes the module type of the extension module.

[0032] In an optional embodiment, for an unknown extension module, the extension module information is first registered and the registration information is stored in the extension module information library. By obtaining the extension module information and comparing it with the registration information stored in the extension module information library, even if an unknown extension module is inserted into the smart energy meter, the management module can determine the basic information of the unknown extension module through the pre-stored registration information, thereby identifying the unknown extension module.

[0033] In an optional embodiment, during the registration phase, after obtaining the registration information, the management module will first determine whether there is information identical to the registration information in the extension module information library. If there is no identical information, the received registration information will be stored in the extension module information library. If there is identical information, the storage operation will not be performed.

[0034] Step S30: Determine the module type of the extension module according to the registration information corresponding to the extension module information in the extension module information library. A series of subsequent operations on the extension module are basically implemented based on the module type of the extension module. Therefore, determining the module type of the extension module is equivalent to realizing the identification of the extension module.

[0035] Step S40: Establishing a communication channel according to the module type of the extension module. Since different types of extension modules need to establish communication channels with different devices, and different types of extension modules have different communication modes with other devices, it is necessary to establish a communication channel corresponding to the module type of the extension module.

[0036] The automatic identification method of the smart electric energy meter extension module provided by the embodiment of the present invention first obtains the registration information of the extension module before receiving the extension module arrival signal, and stores the registration information in the module information library, the registration information includes the module type of the extension module, after receiving the extension module arrival signal and obtaining the module extension information of the extension module, the module type of the extension module can be determined by the registration information corresponding to the extension module information, and a communication channel is established according to the module type of the extension module, thereby completing the identification and use of the extension module. The automatic identification method of the smart electric energy meter extension module provided by the embodiment of the present invention, through the registration mechanism of obtaining the registration information and storing the registration information, when receiving the extension module arrival signal generated by an unknown extension module, the extension module can be identified according to the registration information in the module information library, even if the extension module that generates the arrival signal is an unknown extension module, the plug-and-play of the extension module can be realized.

[0037] In an optional embodiment, the registration information also includes the encryption method of the extension module, such as Figure 2 As shown, the method for automatically identifying the expansion module of the smart electric energy meter also includes:

[0038] Step S50: determining the encryption method of the extension module according to the registration information corresponding to the extension module information in the extension module information library.

[0039] In an optional embodiment, the encryption method of the extension module generally includes hardware ESAM encryption and software encryption, and the encryption method included in the registration information of the extension module is hardware ESAM encryption or software encryption.

[0040] Step S60: authenticating the extension module using a security authentication method corresponding to the encryption method.

[0041] As described in the above step S50, the encryption method of the extension module generally includes hardware ESAM encryption and software encryption. For different encryption methods, the security authentication methods used during authentication are also different. When the encryption method of the extension module is hardware ESAM encryption, the authentication method corresponding to the hardware ESAM encryption is used to authenticate the extension module. When the encryption method of the extension module is software encryption, the authentication method corresponding to the software encryption is used to authenticate the extension module. This method can take into account the extension modules encrypted by different encryption measures, and authenticate the extension modules by a suitable security authentication method, thereby ensuring a smooth and successful authentication.

[0042] In the method for automatically identifying an expansion module of a smart electric energy meter provided by an embodiment of the present invention, the registration information firstly obtained and stored includes the encryption method of the expansion module. Since the encryption methods of different expansion modules are different, if a security authentication method that does not correspond to the encryption method is used to authenticate the expansion module, the authentication result obtained is not reliable. In the method for automatically identifying an expansion module of a smart electric energy meter provided by an embodiment of the present invention, the registration information includes the encryption method of the expansion module. After receiving a signal that the expansion module is in place, the encryption method of the expansion module can be quickly determined according to the registration information, so that the security authentication method corresponding to the encryption method can be selected to perform security authentication on the expansion module. Therefore, by implementing the embodiment of the present invention, the security authentication of the expansion module can be quickly completed, and the security authentication result is more accurate and reliable.

[0043] In an optional embodiment, the registration information may include different types of identification numbers generated according to predefined identification rules, and the extension module is identified by the identification number to facilitate subsequent identification of the extension module based on the identification number. Exemplarily, the identification number may include a category identification number for identifying a functional type of the extension module, a logical address identification number for identifying a logical address of the extension module, a module serial identification number for identifying a module serial number of the extension module, and the like.

[0044] In an optional embodiment, the module type in the registration information can be identified by a category identification number. Different category identification numbers are used to represent different module types. For the same module type, a unified identification number is used for identification. When the module type of the extension module is subsequently identified, the module type of the extension module can be determined by the identification number.

[0045] In an optional embodiment, a 16-bit binary string can be used to form a category identification number to identify the module type of the expansion module. For example, bit0 can be used to indicate a communication type expansion module, bit1 can be used to indicate a computing type expansion module, bit2 can be used to indicate a control type expansion module, bit3 can be used to indicate a storage type expansion module, and the other bits can be reserved as 0.

[0046] In an optional embodiment, when inputting the basic information of the extension module, the user can manually input the category identification number corresponding to the module type of the extension module and satisfying the predefined identification rule. After receiving the basic information and the category identification number of the extension module, the management module combines the basic information and the category identification number of the extension module to form the registration information.

[0047] In an alternative embodiment, if Figure 3 As shown, if the user does not enter the category identification number when entering the basic information of the expansion module, the registration information can be generated through the following steps:

[0048] Step S71: receiving basic information of the extension module, wherein the basic information includes the module type of the extension module, and the module type includes a communication extension module, a computing extension module, a control extension module, a storage extension module, and the like.

[0049] Step S72: determining the category identification number of the extension module according to the predefined identification rule and the module type of the extension module, wherein the predefined identification rule includes the category identification number corresponding to each module type.

[0050] Step S73: Generate registration information according to the basic information and category identification number of the extension module.

[0051] When the management module establishes communication with the extension module and establishes communication between the extension module and the terminal device, it is necessary to first clarify the basic information of the extension module through the registration information in the extension module information library. For example, the management module needs to first determine the type of the extension module before transmitting the corresponding information to the extension module. However, for an unknown extension module newly inserted into the smart electric energy meter, the management module cannot know the category and other information of the extension module. The automatic identification method of the smart electric energy meter extension module provided by the embodiment of the present invention stores the extension module information in the extension module information library, and first determines the category identification number used to characterize the functional type of the extension module according to the predefined identification rule of the extension module information library. The category identification number determined according to the predefined identification rule can classify the extension module according to a unified standard, thereby realizing compatible processing of known extension modules and unknown extension modules. Moreover, after receiving the extension module arrival signal, even if the extension module that sends the extension module arrival signal is an unknown extension module, the functional type of the unknown extension module can be determined by the category identification number of the extension module, thereby realizing plug-and-play of the unknown extension module.

[0052] In an optional embodiment, the received basic information may also include the logical address of the extension module. The predefined identification rules may define a method for generating a logical address identification number. When generating registration information, the logical address identification number may be generated according to the predefined identification rules. The registration information may be generated based on the basic information, the category identification number, and the logical address identification number.

[0053] In an optional embodiment, the predefined identification rules can define a logical address identification number formed by decimal characters to identify the logical address of the extension module, 2 represents the load switch, 3 represents the non-intrusive load sensing module, 4 represents the ordered charging module, 5 represents the power quality module, 6 represents the extended communication module 1, 7 represents the extended communication module, 8 represents the smart lock, 9 represents the device metering module, 10 represents the washing machine, 11 represents the refrigerator, 12 represents the water heater, and 13 represents the air conditioner.

[0054] In an optional embodiment, the received basic information may also include a module serial number of the extension module. During the authentication process, the extension module can be used for key dispersion. The predefined identification rule may define a method for generating the module serial identification number. When generating registration information, the module serial identification number may be generated according to the predefined identification rule, and the registration information may be generated according to the basic information, the category identification number, and the module serial identification number.

[0055] In an optional embodiment, the predefined identification rules may define the use of the ESAM serial number as the module serial identification number; may also define the use of the device serial number as the module serial identification number; and may also define: if there is an ESAM serial number in the module, the ESAM serial number is used as the module serial number; if there is no ESAM serial number, the device serial number is used as the module serial number; if there is neither an ESAM nor a device serial number, a character with 8 bytes all being 0 is used as the module serial number of the extended module.

[0056] In an optional embodiment, the above step S40 includes: if the extension module type is a Class B extension module and is a metering extension module, establishing a communication channel between the extension module and the metering module.

[0057] In an alternative embodiment, if Figure 4 As shown, the extension modules can be divided into two categories: Class A extension modules and Class B extension modules. Among them, Class A extension modules are mainly responsible for the communication between the electric energy meter and the master station / terminal. When the extension module type belongs to Class A extension module, a communication channel between the extension module and the master station / terminal can be established.

[0058] Generally, Class B extension modules can be divided into metering modules and non-metering modules. If it is a metering module, the management module needs to automatically enable the metering module sampling data output function. The sampling data is transmitted to the extension module through the SPI between the extension module and the metering module. Such modules include load identification modules. For non-metering modules, it is not necessary to enable the metering module sampling data output function, such as orderly power consumption modules. A maximum of 1 Class A extension module is supported inside the electric energy meter. A single-phase meter supports the connection of 2 Class B extension modules at the same time, and a three-phase meter supports the connection of up to 3 Class B extension modules at the same time.

[0059] In such Figure 4 In the embodiment shown, when the management module communicates with the A-type extension module and the B-type extension module, it is necessary to transmit data through a universal asynchronous receiver / transmitter (UART), so the management module needs to establish a communication channel with the A-type extension module and the B-type extension module based on UART, and when the management module communicates with the metering module, it is necessary to transmit data through a serial peripheral interface (SPI), so the management module needs to establish a communication channel with the metering module based on SPI. Therefore, when the management module establishes an interactive channel with the extension module, it is necessary to establish a communication channel corresponding to the type of the extension module according to the module type.

[0060] In an optional embodiment, the step of establishing a communication channel between the extension module and the metering module specifically includes:

[0061] First, the logical address of the extension module is determined according to the registration information corresponding to the extension module information in the extension module information library.

[0062] Then, if the logical address of the extension module is the same as the logical address of the extension module for which the communication channel has been established, a new logical address is allocated to the extension module;

[0063] Finally, a communication channel with the metering module is established according to the new logical address.

[0064] In an optional embodiment, the extension module itself has a logical address, but when establishing an interactive channel, if a communication channel has been established for an extension module of the same module type as the extension module, in order to avoid a conflict between the extension module and other extension modules of the same module type, a new logical address needs to be allocated to the extension module.

[0065] In an optional embodiment, if the registration information includes a category identification number, after executing the above step S40, the method for automatically identifying the smart electric energy meter extension module provided by the embodiment of the present invention further includes:

[0066] Enable the function permissions corresponding to the module type for the extension module.

[0067] Different types of extension modules have different functions. In order to enable the extension module to realize its function, after determining the type of the extension module according to the category identification number, the corresponding functional permissions can be enabled for the extension module according to the functions corresponding to the type of extension module. For example, if it is a metering module, the metering module sampling data output function is enabled.

[0068] The embodiment of the present invention further provides a smart electric energy meter, including a management module, a metering module and an expansion module connection device, wherein Figure 5 As shown, the management module includes:

[0069] The module arrival signal detection module 10 is used to receive the extension module arrival signal and obtain the extension module information. For details, please refer to the description of step S10 in the above embodiment, which will not be repeated here.

[0070] The registration information acquisition module 20 is used to obtain the registration information corresponding to the extension module information in the extension module information library. The registration information is obtained and stored in the extension module information library before receiving the extension module arrival signal. For details, please refer to the description of step S20 in the above embodiment, which will not be repeated here.

[0071] The extension module identification module 30 is used to determine the module type of the extension module according to the registration information corresponding to the extension module information in the extension module information library. For details, please refer to the description of step S30 in the above embodiment, which will not be repeated here.

[0072] The communication channel connection module 40 is used to establish a communication channel according to the module type of the extension module. For details, please refer to the description of step S40 in the above embodiment, which will not be repeated here.

[0073] The smart energy meter provided by the embodiment of the present invention first obtains the registration information of the extension module before receiving the extension module arrival signal, and stores the registration information in the module information library, wherein the registration information includes the module type of the extension module, thereby completing the identification of the extension module. The smart energy meter provided by the embodiment of the present invention, through the registration mechanism of obtaining the registration information and storing the registration information, can identify the extension module according to the registration information in the module information library when receiving the extension module arrival signal generated by an unknown extension module, and even if the extension module generating the arrival signal is an unknown extension module, the plug-and-play of the extension module can be realized.

[0074] In an optional embodiment, the registration information also includes an encryption method of the extension module, and the smart electric energy meter provided by the embodiment of the present invention also includes:

[0075] The encryption mode confirmation module is used to determine the encryption mode of the extension module according to the registration information corresponding to the extension module information in the extension module information library. For details, please refer to the description of step S50 in the above embodiment, which will not be repeated here.

[0076] The security authentication module is used to authenticate the extension module using a security authentication method corresponding to the encryption method. For details, please refer to the description of step S60 in the above embodiment, which will not be repeated here.

[0077] In an optional embodiment, in the smart electric energy meter provided by the embodiment of the present invention, the communication channel connection module 40 includes:

[0078] The first judgment submodule is used to judge whether the extension module type is a Class B extension module. For details, please refer to the description of the method for establishing communication between the extension module and the metering module in the above embodiment, which will not be repeated here.

[0079] The second judgment submodule, if the extension module type is a Class B extension module, the second judgment module is used to judge whether the extension module type is a metering extension module. For details, please refer to the description of the method for establishing communication between the extension module and the metering module in the above embodiment, which will not be repeated here.

[0080] The communication channel establishment submodule is used to establish a communication channel between the extension module and the metering module if the extension module type is a metering extension module. For details, please refer to the description of the method for establishing a communication channel between the extension module and the metering module in the above embodiment, which will not be repeated here.

[0081] In an optional embodiment, in the smart electric energy meter provided by the embodiment of the present invention, the communication channel establishment submodule includes:

[0082] The logical address acquisition unit is used to determine the logical address of the extension module according to the registration information corresponding to the extension module information in the extension module information library. For details, please refer to the description of the steps of establishing the communication channel between the extension module and the metering module in the above embodiment, which will not be repeated here.

[0083] Logical address allocation unit, if the logical address of the extension module is the same as the logical address of the extension module with which the communication channel has been established, the logical address allocation unit is used to allocate a new logical address to the extension module. For details, please refer to the description of the steps of establishing a communication channel between the extension module and the metering module in the above embodiment, which will not be repeated here.

[0084] The communication channel establishing unit is used to establish a communication channel with the metering module according to the new logical address. For details, please refer to the description of the steps of establishing the communication channel between the extension module and the metering module in the above embodiment, which will not be repeated here.

[0085] In an optional embodiment, the smart electric energy meter provided by the embodiment of the present invention further includes:

[0086] The information receiving module is used to receive basic information of the extension module. The basic information includes the module type of the extension module. For details, please refer to the description of step S71 in the above embodiment, which will not be repeated here.

[0087] The category identification number generating module is used to determine the category identification number of the extension module according to the predefined identification rules and the module type of the extension module. The predefined identification rules include the category identification numbers corresponding to each module type. For details, please refer to the description of step S72 in the above embodiment, which will not be repeated here.

[0088] The registration information generating module is used to generate registration information according to the basic information and category identification number of the extension module. For details, please refer to the description of step S73 in the above embodiment, which will not be repeated here.

[0089] The embodiment of the present invention also provides a computer device, such as Figure 6 As shown, the computer device mainly includes one or more processors 51 and a memory 52. Figure 6 A processor 51 is taken as an example.

[0090] The computer device may further include: an input device 53 and an output device 54 .

[0091] The processor 51, the memory 52, the input device 53 and the output device 54 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0092] The processor 51 may be a central processing unit (CPU). The processor 51 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The memory 52 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 smart energy meter, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the smart energy meter via a network. The input device 53 can receive a calculation request (or other digital or character information) input by a user, and generate a key signal input related to the smart energy meter. The output device 54 can include a display device such as a display screen to output the calculation result.

[0093] The embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer storage medium stores computer executable instructions, which can execute the method for automatically identifying the expansion module of the smart electric energy meter in any of the above method embodiments. Among them, the storage medium can be a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0094] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A method for automatically identifying expansion modules of smart electric energy meters. It is characterized in that The management module is applied to a smart electric energy meter, and the method comprises: Receive the extension module arrival signal and obtain the extension module information; Acquire registration information corresponding to the extension module information in the extension module information base, the registration information is acquired and stored in the extension module information base before receiving the extension module arrival signal; for an unknown extension module, first register the extension module information, and store the registration information in the extension module information base, and by acquiring the extension module information and comparing it with the registration information stored in the extension module information base, the management module can also determine the basic information of the unknown extension module through the pre-stored registration information; Determining a module type of the extension module according to registration information corresponding to the extension module information in the extension module information library; Establishing a communication channel corresponding to the module type according to the module type of the extension module; Generate registration information through the following steps: receiving basic information of the extension module, wherein the basic information includes a module type of the extension module; Determine the category identification number of the extension module according to a predefined identification rule and the module type of the extension module, wherein the predefined identification rule includes the category identification number corresponding to each module type; Generate the registration information according to the basic information and category identification number of the extension module; The received basic information also includes the logical address of the extension module. The predefined identification rule defines a method for generating the logical address identification number. When generating the registration information, the logical address identification number is generated according to the predefined identification rule. The registration information is generated according to the basic information, the category identification number, and the logical address identification number. The extension module includes a type A extension module and a type B extension module, wherein the type A extension module is responsible for the communication between the electric energy meter and the master station / terminal. When the type of the extension module belongs to the type A extension module, the step of establishing a communication channel according to the module type of the extension module includes: establishing a communication channel between the extension module and the master station / terminal; When the extension module type is a Class B extension module, the step of establishing a communication channel according to the module type of the extension module includes: Determine whether the Class B extension module is a metering extension module. The Class B extension module includes a metering module and a non-metering module. The metering module requires the management module to automatically enable the metering module sampling data output function, and the sampling data is transmitted to the management module through the SPI between the management module and the metering module; the non-metering module does not need to enable the metering module sampling data output function; If the type B extension module is a metering extension module, a communication channel is established between the extension module and the metering module; The step of establishing a communication channel between the extension module and the metering module includes: Determine the logical address of the extension module according to the registration information corresponding to the extension module information in the extension module information library; If the logical address of the extension module is the same as the logical address of the extension module for which the communication channel has been established, assigning a new logical address to the extension module; A communication channel with the metering module is established according to the new logical address.

2. The method for automatically identifying an expansion module of a smart electric energy meter according to claim 1, It is characterized in that The registration information also includes an encryption method of the extension module, and the method further includes: Determining an encryption method of the extension module according to registration information corresponding to the extension module information in the extension module information library; The extension module is authenticated using a security authentication method corresponding to the encryption method.

3. A smart electric energy meter, comprising a management module, a metering module and an expansion module connection device, It is characterized in that The management module includes: A module arrival signal detection module is used to receive an extension module arrival signal and obtain extension module information; A registration information acquisition module is used to acquire registration information corresponding to the extension module information in the extension module information base, and the registration information is acquired and stored in the extension module information base before receiving the extension module arrival signal; for an unknown extension module, the extension module information is first registered and stored in the extension module information base, and the management module can also determine the basic information of the unknown extension module through the pre-stored registration information by comparing the acquired extension module information with the registration information stored in the extension module information base; An extension module identification module, used to determine the module type of the extension module according to the registration information corresponding to the extension module information in the extension module information library; A communication channel connection module, used to establish a communication channel corresponding to the module type according to the module type of the extension module; The management module also includes: An information receiving module, used to receive basic information of the extension module, wherein the basic information includes a module type of the extension module; A category identification number determination module, used to determine the category identification number of the extension module according to a predefined identification rule and a module type of the extension module, wherein the predefined identification rule includes a category identification number corresponding to each module type; A registration information generating module, used to generate the registration information according to the basic information and category identification number of the extension module; The received basic information also includes the logical address of the extension module. The predefined identification rule defines a method for generating the logical address identification number. When generating the registration information, the logical address identification number is generated according to the predefined identification rule. The registration information is generated according to the basic information, the category identification number, and the logical address identification number. The extension module includes a type A extension module and a type B extension module, wherein the type A extension module is responsible for the communication between the electric energy meter and the master station / terminal. When the type of the extension module belongs to the type A extension module, the step of establishing a communication channel according to the module type of the extension module includes: establishing a communication channel between the extension module and the master station / terminal; The communication channel connection module includes: A first determination submodule is used to determine whether the extension module type is a Class B extension module; The second judgment submodule, if the extension module type is a Class B extension module, the second judgment submodule is used to judge whether the Class B extension module is a metering extension module, the Class B extension module includes a metering module and a non-metering module, the metering module requires the management module to automatically turn on the metering module sampling data output function, and the sampling data is transmitted to the management module through the SPI between the management module and the metering module; the non-metering module does not need to turn on the metering module sampling data output function; A communication channel establishment submodule, if the Class B extension module is a metering extension module, the communication channel establishment submodule is used to establish a communication channel between the extension module and the metering module; The communication channel establishment submodule includes: a logic address acquiring unit, configured to determine the logic address of the extension module according to the registration information corresponding to the extension module information in the extension module information library; a logic address allocation unit, configured to allocate a new logical address to the extension module if the logic address of the extension module is the same as the logic address of the extension module for which the communication channel has been established; The communication channel establishing unit is used to establish a communication channel with the metering module according to the new logical address.

4. The smart electric energy meter according to claim 3, It is characterized in that The registration information also includes the encryption method of the extension module, and the management module also includes: An encryption mode confirmation module, used to determine the encryption mode of the extension module according to the registration information corresponding to the extension module information in the extension module information library; The security authentication module is used to authenticate the extension module using a security authentication method corresponding to the encryption method.