Electric energy meter extension method and device, computer equipment, readable storage medium and program product

By detecting the access and authentication of the expansion device in the power meter, the problem of low security of existing power meter expansion methods is solved, and higher security and reliability are achieved.

CN119336667AActive Publication Date: 2025-01-21ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD +1

Patent Information

Application Number
CN202411769990.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-01-21
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

The existing energy meter expansion method has the problem of low safety, especially when communication between modules is relatively simple.

Method used

By detecting the expansion interface of the power table of the expansion device, use the measurement module to receive the identity authentication request of the expansion equipment, establish a connection, and perform identity authentication based on attribute information to ensure the security of the extension equipment.

Benefits of technology

The security of electric energy meter expansion is improved, and identity authentication ensures that only expansion devices that have passed the authentication can perform expanded services, which enhances the security and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336667A_ABST
    Figure CN119336667A_ABST
Patent Text Reader

Abstract

The invention relates to an electric energy meter extension method and device, computer equipment, a readable storage medium and a program product. When the expansion equipment is accessed, a metering module establishes connection with the expansion equipment through an identity authentication request, performs identity authentication on the expansion equipment through the metering module on the basis of the connection and attribute information of the expansion equipment to obtain a corresponding identity authentication result, and when the identity authentication result passes, the expansion equipment is accessed. And executing the corresponding extended service according to the metering module and the extended service application in the operating system of the extended equipment. Compared with a traditional method of expanding by replacing an original module in the electric energy meter, the method has the advantages that the expansion equipment is connected to the expansion interface in the electric energy meter, the connection between the expansion equipment and the metering module is established, and the expansion equipment is subjected to identity authentication; the corresponding extension service is processed by using the extension service application in the operating system of the extension equipment and the output data of the metering module, so that the extension security of the electric energy meter is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric energy meters, and in particular to an electric energy meter expansion method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the rapid development of smart grids, the functional requirements and software design requirements of electric energy meters are becoming higher and higher. As a basic module of smart grids, smart meters provide massive data resources for metering automation systems and play an important role in the development and construction of smart grids. With the rapid development of power grid business, electric energy meters need to undertake more complex business and realize more functions, so it is necessary to expand electric energy meters. At present, the way to expand electric energy meters is usually to modularize the original basic functions in the electric energy meters by managing the main control circuit and to achieve expansion by replacing a basic function module. However, by replacing the existing modules to achieve expansion, the communication between modules is relatively simple, resulting in reduced safety of the electric energy meter.

[0003] Therefore, the current method for expanding the electric energy meter has the defect of low safety. Summary of the invention

[0004] Based on this, it is necessary to provide an electric energy meter expansion method, device, computer equipment, computer readable storage medium and computer program product that can improve safety in response to the above technical problems.

[0005] In a first aspect, the present application provides an electric energy meter expansion method, which is applied to an electric energy meter, and the method includes:

[0006] When it is detected that an extension device is connected to the extension interface in the electric energy meter, an identity authentication request sent by the extension device is received through the metering module in the electric energy meter; the identity authentication request includes attribute information corresponding to the extension device;

[0007] Establishing a connection between the metering module and the expansion device according to the identity authentication request;

[0008] Performing identity authentication on the extension device based on the connection and the attribute information by the metering module to obtain a corresponding identity authentication result;

[0009] When it is detected that the identity authentication result is authentication passed, the corresponding extended service is executed according to the extended service application in the operating system of the metering module and the extended device.

[0010] In one embodiment, establishing a connection between the metering module and the expansion device according to the identity authentication request includes:

[0011] Sending the identity authentication request to the metering module through a serial peripheral interface protocol channel;

[0012] Obtaining a handshake notification in the identity authentication request through the metering module;

[0013] Generate corresponding response information according to the handshake notification, and send the response information to the expansion device; the expansion device establishes a connection with the metering module based on the response information.

[0014] In one embodiment, the performing identity authentication on the extension device based on the connection and the attribute information by the metering module to obtain a corresponding identity authentication result includes:

[0015] Generate an identity authentication request information message based on the attribute information by the metering module;

[0016] The identity authentication request information message is sent to the extension device through the connection; the extension device is used to return a corresponding identity authentication confirmation message when verifying that the identity authentication request information message is correct;

[0017] The identity authentication confirmation message is verified, and when the verification is successful, the identity authentication result is determined to be successful.

[0018] In one embodiment, executing the corresponding extended service according to the extended service application in the operating system of the metering module and the extended device includes:

[0019] If the extended service application in the operating system of the extended device is a computing service application, determining that the extended device is a computing extended device;

[0020] Obtaining a clock synchronization request and a metering configuration request sent by the extension device;

[0021] Performing clock synchronization on the metering module and the expansion device according to the clock synchronization request, and sending configuration parameters of the metering module to the expansion device according to the metering configuration request to obtain the configured expansion device;

[0022] The original data is acquired through the metering module and output to the computing business application in the configured expansion device; the configured expansion device is used to process the original data according to the computing business application.

[0023] In one embodiment, synchronizing the clock of the metering module with the expansion device according to the clock synchronization request includes:

[0024] When the metering module detects the time calibration information of the master station corresponding to the electric energy meter, the electric energy meter is first calibrated according to the time calibration information;

[0025] The plain text broadcast timing information is sent to the extension device according to the clock synchronization request and the timing information; the extension device is used to perform a second timing according to the plain text broadcast timing information.

[0026] In one embodiment, the detecting that an expansion device is connected to an expansion interface in the electric energy meter includes:

[0027] When it is detected through the extension interface that the extension device is powered on, it is determined that the extension device is detected to be connected to the extension interface;

[0028] The method further comprises:

[0029] When it is detected that the expansion device is removed from the expansion interface, the communication between the metering module and the expansion device is stopped.

[0030] In a second aspect, the present application provides an electric energy meter expansion device, the device comprising:

[0031] an access module, configured to receive, through the metering module in the electric energy meter, an identity authentication request sent by the extension device when detecting that the extension device is connected to the extension interface in the electric energy meter; the identity authentication request includes attribute information corresponding to the extension device;

[0032] A connection module, used to establish a connection between the metering module and the extension device according to the identity authentication request;

[0033] an authentication module, configured to perform identity authentication on the extension device based on the connection and the attribute information through the metering module, and obtain a corresponding identity authentication result;

[0034] The extension module is used to execute the corresponding extended service according to the extended service application in the operating system of the metering module and the extension device when detecting that the identity authentication result is authentication passed.

[0035] In a third aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0036] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0037] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0038] The above-mentioned electric energy meter expansion method, device, computer equipment, computer-readable storage medium and computer program product, when accessed through the expansion device, the metering module establishes a connection with the expansion device through an identity authentication request, and the metering module authenticates the expansion device based on the connection and the attribute information of the expansion device to obtain the corresponding identity authentication result. When the identity authentication result passes, the corresponding expansion service is executed according to the expansion service application in the operating system of the metering module and the expansion device. Compared with the traditional expansion by replacing the original module in the electric energy meter, this solution connects the expansion device to the expansion interface in the electric energy meter, establishes a connection between the expansion device and the metering module, authenticates the expansion device and passes the identity authentication, and then uses the expansion service application in the operating system of the expansion device and the output data of the metering module to process the corresponding expansion service, thereby improving the security of the electric energy meter expansion. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1 A schematic diagram of a flow chart of an electric energy meter expansion method in one embodiment;

[0041] Figure 2 A schematic diagram of the structure of an electric energy meter in an embodiment;

[0042] Figure 3 is a structural block diagram of an electric energy meter expansion device in one embodiment;

[0043] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] In one embodiment, Figure 1As shown, a method for expanding an electric energy meter is provided. This embodiment uses the method applied to a server as an example for illustration. It can be understood that the method can also be applied to an electric energy meter, and can also be applied to a system including an electric energy meter and a server, and is implemented through the interaction between the electric energy meter and the server, including the following steps S202 to S208. Among them:

[0046] Step S202, when it is detected that the expansion device is connected to the expansion interface in the electric energy meter, an identity authentication request sent by the expansion device is received through the metering module in the electric energy meter; the identity authentication request includes attribute information corresponding to the expansion device.

[0047] Among them, the electric energy meter is an instrument used to measure electric energy. It is widely used in the field of electric energy trade settlement and monitoring, and is the basis for the modernization of electric energy metering management. Among them, the above-mentioned electric energy meter is preset with an expansion interface, which can be used to access the corresponding expansion device. The expansion device is installed with an operating system, and the corresponding expansion business application can be installed in the operating system. There can be multiple types of expansion devices, and different types of expansion business applications of different business types can be installed in the operating systems of different types of expansion devices. The electric energy meter can determine whether there is an expansion device connected by detecting the access information of the expansion interface.

[0048] If the electric energy meter detects that an extension device is connected to the extension interface in the electric energy meter through the extension interface, the electric energy meter can authenticate the connected extension device. The electric energy meter can determine whether the extension device is connected by detecting whether the extension device is powered on.

[0049] In one embodiment, detecting that an extension device is connected to an extension interface in the electric energy meter includes: when the extension device is detected to be powered on through the extension interface, determining that the extension device is detected to be connected to the extension interface. In this embodiment, the electric energy meter can detect whether the extension device is powered on through the extension interface. If the electric energy meter detects that the extension device is powered on through the extension interface, it can be determined that the extension device is detected to be connected to the extension interface. Then, when the extension device is powered on, it can be registered to the metering module for identity authentication.

[0050] The extended device generates a corresponding identity authentication request using its own attribute information, and sends the identity authentication request to the electric energy meter. The electric energy meter includes a metering module for realizing the metering function, and the electric energy meter receives the identity authentication request sent by the extended device through the metering module, so that the electric energy meter performs the identity authentication process of the extended device based on the attribute information in the identity authentication request through the metering module.

[0051] Specifically, the structure of the electric energy meter can be as follows: Figure 2 As shown, Figure 2It is a schematic diagram of the structure of an electric energy meter in an embodiment. The electric energy meter includes a metering module, a storage module and an attached expansion device. Among them, the metering module is used to realize the metering function. The metering module is the core module of the electric energy meter, which mainly realizes the legal metering function, and the circuit design of the metering module mainly includes three parts: a metering core control circuit, a sampling circuit and a storage module. Among them, the above-mentioned metering control chip can be an FM3308 chip, which has an 8-bit TURBO 51MCU (Microcontroller Unit) core, 60KBFLASH (flash memory) program memory and 3.5KB xRAM (on-chip expanded Random Access Memory, external random access memory) and 256B iRAM (Internal Random Access Memory, static random access memory). In addition, it also integrates LCD (Liquid Crystal Display) drive circuit, real-time clock (RTC), multiple UART (Universal Asynchronous Receiver / Transmitter) interfaces, I2C (Inter-Integrated Circuit) interface, 7816 interface, etc., supports multiple communication protocols, and meets the data processing and communication needs of smart electricity meters.

[0052] Wherein, the sampling circuit includes a voltage sampling circuit and a current sampling circuit. The voltage sampling circuit adopts a resistive voltage-dividing sampling circuit with strong anti-interference ability and low cost, and the current sampling circuit is two-way, sampling the current of the neutral line and the live line respectively. The electric energy meter can use a manganese copper sheet current sensor to sample the live line current. The manganese copper sheet current sensor is a special sensor. When the current flowing through the manganese copper sheet changes, the potential difference generated will cause the potential difference between its two ends to change, so that the current can be determined by measuring the potential difference. Wherein, the resistance of the manganese copper sheet in the manganese copper sheet current sensor can be 300μΩ. The electric energy meter can also use a circuit transformer to sample the neutral line current. Wherein, in order to avoid damage to the metering chip, different current sensors can be set in the two-way current sampling circuits.

[0053] The above storage module is used to realize the storage function. In the process of operation, the electric energy meter needs to store the collected data and the calculated data, and the internal Flash size of the MCU of the electric energy meter itself is limited, so some data needs to be stored in an external storage device. Among them, the above storage module is the W25Q64JVSSIQ chip. The W25Q64JVSSIQ chip is a serial flash memory chip that provides a storage solution for electric energy meters with limited space, pins and power. It provides flexibility and performance far exceeding that of ordinary serial flash memory devices, and is very suitable for memory code shielding, direct code execution from dual-channel / quad-channel SPI (XIP), and storage of voice, text and data.

[0054] The above expansion device is a non-legal component of the new type of electric energy meter, which is completely decoupled from the above metering module. The above expansion device also supports software upgrades, and the operation, upgrade, and communication of the expansion device should not affect the operation of the metering module. Among them, the above expansion device includes an operating system module, an edge computing module, and a peripheral interface module.

[0055] Among them, the above operating system module includes: a startup layer, a driver layer, a system layer, and an application layer. The above application layer is used to implement the operation and management of system application software, business application software, and extended application software. Among them, business application software and extended application software can also be called extended business applications. System application software implements message routing, device management, event notification, application management, upgrade management, security management, access authentication, intelligent operation and maintenance, etc. Business applications and extended application software implement the extended function of the electric energy meter. The above system layer supports multi-core design and provides basic kernel capabilities such as embedded operating system multi-task scheduling, inter-task communication, memory resource allocation and protection.

[0056] Among them, the system layer includes the kernel, components, and POSIX (Portable Operating System Interface for Computer Environments) standard interface. The above-mentioned driver layer realizes the main control driver and peripheral driver, and is compatible with multiple architecture hardware platforms (ARM / RISV, etc.), so as to provide unified peripheral access capabilities and driver development and management frameworks for the above-mentioned system layer and the above-mentioned application layer. The startup layer implements partial hardware initialization and guides the kernel to load and start. Therefore, the electric energy meter sets the operating system in the extension layer and divides the above-mentioned operating system into the startup layer, driver layer, system layer, and application layer, so that the operating system is suitable for the hardware conditions of the electric energy meter. At the same time, it also makes the design logic of the electric energy meter clearer.

[0057] Step S204: establishing a connection between the metering module and the expansion device according to the identity authentication request.

[0058] After the expansion device is connected to the electric energy meter, it needs to establish a two-way communication connection with the metering module. For example, the electric energy meter can establish a connection between the metering module and the expansion device according to the above-mentioned identity authentication request. The electric energy meter can establish a connection between the metering module and the expansion device by handshake connection.

[0059] Step S206: The metering module performs identity authentication on the expansion device based on the connection and the attribute information to obtain a corresponding identity authentication result.

[0060] After the electric energy meter establishes a connection between the metering module and the extended device, the electric energy meter can process the attribute information in the identity authentication request through the above connection using the metering module, and then authenticate the extended device to obtain the corresponding identity authentication result. The electric energy meter can perform identity authentication in the metering module by constructing a request with the attribute information and performing a two-way confirmation with the extended device.

[0061] Step S208: When it is detected that the identity authentication result is authentication passed, the corresponding extended service is executed according to the extended service application in the operating system of the metering module and the extended device.

[0062] Among them, the above-mentioned identity authentication results include authentication passed and authentication failed. If the electric energy meter detects that the above-mentioned identity authentication result is authentication passed, it means that the expansion device can exchange data with the metering module. Among them, the metering module is used to collect electricity-related metering data. The above-mentioned expansion device is provided with an operating system, and the corresponding extended business application is installed in the operating system. The electric energy meter can execute the corresponding extended business according to the extended business application in the metering module and the operating system of the expansion device. For example, the metering module outputs the collected data to the expansion device, and the expansion device can process the above-mentioned data through the extended business application, and then execute the corresponding type of extended business. The above-mentioned expansion device can be a device connected through an extended interface.

[0063] In one embodiment, the method further includes: when it is detected that the expansion device is removed from the expansion interface, the communication between the metering module and the expansion device is stopped. In this embodiment, the expansion device can be connected to the electric energy meter through the expansion interface, and when the electric energy meter detects that the expansion device is removed from the expansion interface, the communication between the metering module and the expansion device can be stopped. This improves the efficiency of data transmission.

[0064] In the above-mentioned electric energy meter expansion method, when accessed through an expansion device, the metering module establishes a connection with the expansion device through an identity authentication request, and the metering module authenticates the expansion device based on the connection and the attribute information of the expansion device to obtain the corresponding identity authentication result. When the identity authentication result is passed, the corresponding expansion service is executed according to the expansion service application in the operating system of the metering module and the expansion device. Compared with the traditional expansion by replacing the original module in the electric energy meter, this solution connects the expansion device to the expansion interface in the electric energy meter, establishes a connection between the expansion device and the metering module, authenticates the expansion device and passes the identity authentication, and then uses the expansion service application in the operating system of the expansion device and the output data of the metering module to process the corresponding expansion service, thereby improving the security of the electric energy meter expansion.

[0065] In one embodiment, according to the above-mentioned identity authentication request, a connection is established between the above-mentioned metering module and the above-mentioned expansion device, including: sending the above-mentioned identity authentication request to the above-mentioned metering module through a serial peripheral interface protocol channel; obtaining a handshake notification in the above-mentioned identity authentication request through the above-mentioned metering module; generating corresponding response information according to the above-mentioned handshake notification, and sending the above-mentioned response information to the above-mentioned expansion device; the above-mentioned expansion device establishes a connection with the above-mentioned metering module based on the above-mentioned response information.

[0066] In this embodiment, the expansion device can establish a bidirectional connection with the metering module in the electric energy meter. For example, the electric energy meter can receive an identity authentication request containing the encrypted basic data of the expansion device sent by the expansion device through the SPI (Serial Peripheral Interface) protocol channel, and send the identity authentication request to the metering module through the above SPI protocol channel. The metering module determines the handshake notification based on the encrypted basic data in the identity authentication request, generates corresponding response information based on the above handshake notification, and sends the response information to the expansion device through the metering module. The expansion device can establish a connection with the metering module based on the response information, and then start the corresponding identity authentication process.

[0067] Specifically, when the electric energy meter detects that the expansion device is powered on, it needs to register the expansion device to the metering module for identity authentication. Among them, the expansion device can notify the above-mentioned metering module to receive the encrypted basic data of the expansion device through the bidirectional SPI channel of the DL / T645 protocol. The above-mentioned metering module can obtain the corresponding handshake notification based on the encrypted basic data, and respond to the handshake notification of the expansion device by generating a response message, thereby establishing a bidirectional connection between the metering module and the expansion device.

[0068] Through this embodiment, the electric energy meter can establish a connection between the metering module and the extension device by means of a two-way handshake, and then process the corresponding extension service after identity authentication based on the connection, thereby improving the security of the extension device accessing the electric energy meter.

[0069] In one embodiment, the metering module performs identity authentication on the extension device based on the connection and the attribute information to obtain a corresponding identity authentication result, including: generating an identity authentication request information message based on the attribute information through the metering module; sending the identity authentication request information message to the extension device through the connection; the extension device is used to return a corresponding identity authentication confirmation message when verifying that the identity authentication request information message is correct; verifying the identity authentication confirmation message, and determining that the identity authentication result is authentication passed when the verification passes.

[0070] In this embodiment, the electric energy meter can realize the identity authentication of the extended device by means of two-way message confirmation. The above-mentioned identity authentication request includes the attribute information of the extended device, and the electric energy meter can generate an identity authentication request information message based on the above-mentioned attribute information through the metering module. And through the above-mentioned connection, the identity authentication request information message is sent to the extended device, and the extended device can verify the identity authentication request message, and return the corresponding identity authentication confirmation message when verifying that the above-mentioned identity authentication request message is correct. The metering module receives the above-mentioned identity authentication message and verifies the correctness of the above-mentioned identity authentication confirmation message. When the verification is passed, the electric energy meter can determine that the above-mentioned identity authentication result is authentication passed. After the above-mentioned identity authentication is passed, the electric energy meter can add a pass mark to the extended device. If it fails, the electric energy meter can add an error mark to the extended device.

[0071] Specifically, when the electric energy meter performs identity authentication, the electric energy meter can obtain the attribute information of the above-mentioned extended device, including the ESAM (Enhanced Security Access Module) serial number, key version, session negotiation counter, etc., and generate an extended device identity authentication request information message according to the attribute information. After the electric energy meter generates the identity authentication request information message, it can be sent to the above-mentioned extended device. After the above-mentioned extended device receives the identity authentication request information message, it can verify the data in the identity authentication request information message to determine whether the data is correct. If it is wrong, it returns an identity authentication error message and ends the authentication process.

[0072] If the identity authentication request information message is verified correctly, the above-mentioned extension device will verify the identity authentication request data return information to form an identity authentication confirmation message and send it to the electric energy meter. After receiving the identity authentication confirmation message, the electric energy meter can verify whether the data in the identity authentication confirmation message is correct. If it is wrong, add an error mark to the extension device and end the authentication process. If the verification is correct, the electric energy meter can add an authentication pass mark to the extension.

[0073] Through this embodiment, the electric energy meter can authenticate the expansion device based on a two-way message verification method, so that the electric energy meter implements extended business processing for the data of the metering module based on the expansion device after identity authentication, thereby improving the security of the electric energy meter accessing the expansion device.

[0074] In one embodiment, the corresponding extended service is executed according to the extended service application in the operating system of the metering module and the extended device, including: if the extended service application in the operating system of the extended device is a computing service application, determining that the extended device is a computing service application; obtaining a clock synchronization request and a metering configuration request sent by the extended device; performing clock synchronization on the metering module and the extended device according to the clock synchronization request, and sending the configuration parameters of the metering module to the extended device according to the metering configuration request to obtain a configured extended device; obtaining raw data through the metering module and outputting it to the computing service application in the configured extended device; the configured extended device is used to process the raw data according to the computing service application.

[0075] In this embodiment, the electric energy meter can use the extended device after identity authentication to execute the corresponding extended service application. The extended device can include multiple types, and the electric energy meter can determine the type of extended service to be executed based on the type of the extended device. The type of the above-mentioned extended device can be determined based on the extended service application in the operating system. If the electric energy meter detects that the extended service application in the operating system of the above-mentioned extended device is a computer-type service application, the electric energy meter can determine that the above-mentioned extended device is a computing-type extended device.

[0076] The electric energy meter can also perform corresponding configurations on the extended device, including clock synchronization and metering configuration. Among them, the electric energy meter can obtain the clock synchronization request and metering configuration request sent by the extended device. The clock synchronization request is used to synchronize the clock between the extended device and the metering module, and the metering configuration request is used to configure the environment for the extended device to process metering data. The electric energy meter can perform clock synchronization between the metering module and the extended device according to the clock synchronization request, and send the configuration parameters of the metering module to the extended device according to the metering configuration request. The extended device performs metering configuration based on the configuration parameters, and then the electric energy meter obtains the configured extended device based on the extended device after clock synchronization and metering configuration.

[0077] After the electric energy meter configures the expansion device, the original data can be obtained through the above-mentioned metering module and output to the computing business application in the configured expansion device, so that the configured expansion device can process the above-mentioned original data according to the above-mentioned computing business application.

[0078] Specifically, after the extension device and the metering module complete identity authentication, the electric energy meter can actively report the module change event (30300200) through the serial port of the communication module in the electric energy meter, and notify the management end to read the 40310200 extension device list. The management end establishes the extension device list according to 40310200 for subsequent centralized reading and call testing. The extension device can request the clock from the metering module for clock synchronization, such as clock synchronization through a clock synchronization request; the extension module can also request metering configuration parameters from the metering module, such as obtaining the configuration parameters of the above-mentioned metering module through a metering configuration request. After configuring the extension device, the electric energy meter can determine the type of the extension device. If the device category of the extension device is a computing extension device, the metering module starts sampling raw data, such as raw metering data, and outputs it to the extension device, so that the extension device can process the above-mentioned raw data through the extended business application installed in the operating system, such as computing processing.

[0079] Through this embodiment, the electric energy meter can configure the expansion device after identity authentication, and based on the type of the expansion device, the configured expansion device can perform corresponding processing on the data in the metering module, thereby improving the efficiency of metering data processing and improving the security of the electric energy meter accessing the expansion device.

[0080] In one embodiment, the metering module is clock synchronized with the expansion device according to the clock synchronization request, including: when the metering module detects the time synchronization information of the master station corresponding to the electric energy meter, the electric energy meter is first time synchronized according to the time synchronization information; plain text broadcast time synchronization information is sent to the expansion device according to the clock synchronization request and the time synchronization information; the expansion device is used to perform a second time synchronization according to the plain text broadcast time synchronization information.

[0081] In this embodiment, the electric energy meter can perform clock synchronization with the extended device based on the clock synchronization request and in response to the time information of the master station corresponding to the electric energy meter. The electric energy meter is connected to the corresponding master station. If the electric energy meter detects the time information of the master station corresponding to the electric energy meter through the metering module, the electric energy meter can perform a first time calibration on the electric energy meter according to the time information, and the electric energy meter can send plain text broadcast time information to the extended device using the time information according to the clock synchronization request. After receiving the plain text broadcast time information, the extended device can perform a second time calibration based on the plain text broadcast time information.

[0082] Specifically, the electric energy meter can detect whether the master station is calibrated through the metering module. If the master station is detected to be calibrated, the electric energy meter can perform the first calibration according to the calibration of the master station. After the first calibration is successful, the electric energy meter can send plain text broadcast calibration information to the expansion device through UART. After the expansion device receives the plain text broadcast calibration information, it uses the plain text broadcast calibration information to perform the second calibration including time modification and adjustment.

[0083] Through this embodiment, the electric energy meter can use the time calibration information of the master station to synchronize the time of the electric energy meter, the master station and the expansion device respectively, and then process the related expansion business of the electric energy meter based on the configured expansion device, thereby improving the business processing efficiency.

[0084] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0085] Based on the same inventive concept, the embodiment of the present application also provides an electric energy meter expansion device for implementing the electric energy meter expansion method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more electric energy meter expansion device embodiments provided below can refer to the limitations of the electric energy meter expansion method above, and will not be repeated here.

[0086] In an exemplary embodiment, Figure 3 As shown, an electric energy meter expansion device is provided, including: an access module 500, a connection module 502, an authentication module 504 and an expansion module 506, wherein:

[0087] The access module 500 is used to detect that an extension device is connected to the extension interface in the electric energy meter, and receive an identity authentication request sent by the extension device through the metering module in the electric energy meter; the identity authentication request includes attribute information corresponding to the extension device.

[0088] The connection module 502 is used to establish a connection between the metering module and the expansion device according to the identity authentication request.

[0089] The authentication module 504 is used to perform identity authentication on the extension device based on the connection and the attribute information through the metering module to obtain a corresponding identity authentication result.

[0090] The extension module 506 is used to execute the corresponding extended service according to the extended service application in the operating system of the metering module and the extended device when detecting that the identity authentication result is authentication passed.

[0091] In one embodiment, the connection module 502 is specifically used to send the authentication request to the metering module through a serial peripheral interface protocol channel; obtain a handshake notification in the authentication request through the metering module; generate corresponding response information according to the handshake notification, and send the response information to the expansion device; the expansion device establishes a connection with the metering module based on the response information.

[0092] In one embodiment, the above-mentioned authentication module 504 is specifically used to generate an identity authentication request information message based on the above-mentioned attribute information through the above-mentioned metering module; send the above-mentioned identity authentication request information message to the above-mentioned extension device through the above-mentioned connection; the above-mentioned extension device is used to return a corresponding identity authentication confirmation message when verifying that the above-mentioned identity authentication request information message is correct; verify the above-mentioned identity authentication confirmation message, and determine that the above-mentioned identity authentication result is authentication passed when the verification passes.

[0093] In one embodiment, the above-mentioned extension module 506 is specifically used to determine that the above-mentioned extension device is a computing type extension device if the extended business application in the operating system of the above-mentioned extension device is a computing type business application; obtain the clock synchronization request and the metering configuration request sent by the above-mentioned extension device; synchronize the clock of the above-mentioned metering module with the above-mentioned extension device according to the above-mentioned clock synchronization request, and send the configuration parameters of the above-mentioned metering module to the above-mentioned extension device according to the above-mentioned metering configuration request to obtain the configured extension device; obtain the original data through the above-mentioned metering module and output it to the computing type business application in the above-mentioned configured extension device; the configured above-mentioned extension device is used to process the above-mentioned original data according to the above-mentioned computing type business application.

[0094] In one embodiment, the above-mentioned extension module 506 is specifically used to perform a first time calibration on the above-mentioned electric energy meter according to the above-mentioned time calibration information when the time calibration information of the master station corresponding to the above-mentioned electric energy meter is detected through the above-mentioned metering module; send plain text broadcast time calibration information to the above-mentioned extension device according to the above-mentioned clock synchronization request and the above-mentioned time calibration information; the above-mentioned extension device is used to perform a second time calibration according to the above-mentioned plain text broadcast time calibration information.

[0095] In one embodiment, the access module 500 is specifically configured to determine that it is detected that the extension device is connected to the extension interface when the extension device is powered on through the extension interface.

[0096] In one embodiment, the apparatus further includes: a stopping module, configured to stop the communication between the metering module and the expansion device when detecting that the expansion device is removed from the expansion interface.

[0097] Each module in the above-mentioned electric energy meter expansion device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0098] In an exemplary embodiment, a computer device is provided. The computer device may be an electric energy meter, and its internal structure diagram may be as shown in FIG. Figure 4As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for expanding an electric energy meter is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0099] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0100] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above-mentioned electric energy meter expansion method when executing the computer program.

[0101] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned electric energy meter expansion method is implemented.

[0102] In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned electric energy meter expansion method is implemented.

[0103] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0104] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0105] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0106] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for expanding an electric energy meter, characterized in that: Applied to an electric energy meter, the method comprises: When it is detected that an extension device is connected to the extension interface in the electric energy meter, an identity authentication request sent by the extension device is received through the metering module in the electric energy meter; the identity authentication request includes attribute information corresponding to the extension device; Establishing a connection between the metering module and the expansion device according to the identity authentication request; Performing identity authentication on the extension device based on the connection and the attribute information by the metering module to obtain a corresponding identity authentication result; When it is detected that the identity authentication result is authentication passed, the corresponding extended service is executed according to the extended service application in the operating system of the metering module and the extended device.

2. The method according to claim 1, characterized in that The establishing a connection between the metering module and the expansion device according to the identity authentication request includes: Sending the identity authentication request to the metering module through a serial peripheral interface protocol channel; Obtaining a handshake notification in the identity authentication request through the metering module; Generate corresponding response information according to the handshake notification, and send the response information to the expansion device; the expansion device establishes a connection with the metering module based on the response information.

3. The method according to claim 1, characterized in that The performing identity authentication on the extension device based on the connection and the attribute information by the metering module to obtain a corresponding identity authentication result includes: Generate an identity authentication request information message based on the attribute information by the metering module; The identity authentication request information message is sent to the extension device through the connection; the extension device is used to return a corresponding identity authentication confirmation message when verifying that the identity authentication request information message is correct; The identity authentication confirmation message is verified, and when the verification is successful, the identity authentication result is determined to be successful.

4. The method according to claim 1, characterized in that: The executing corresponding extended services according to the extended service application in the operating system of the metering module and the extended device includes: If the extended service application in the operating system of the extended device is a computing service application, determining that the extended device is a computing extended device; Obtaining a clock synchronization request and a metering configuration request sent by the extension device; Performing clock synchronization on the metering module and the expansion device according to the clock synchronization request, and sending configuration parameters of the metering module to the expansion device according to the metering configuration request to obtain the configured expansion device; The original data is acquired through the metering module and output to the computing business application in the configured expansion device; the configured expansion device is used to process the original data according to the computing business application.

5. The method according to claim 4, characterized in that The step of performing clock synchronization between the metering module and the expansion device according to the clock synchronization request includes: When the metering module detects the time calibration information of the master station corresponding to the electric energy meter, the electric energy meter is first calibrated according to the time calibration information; The plain text broadcast timing information is sent to the extension device according to the clock synchronization request and the timing information; the extension device is used to perform a second timing according to the plain text broadcast timing information.

6. The method according to any one of claims 1 to 5, characterized in that: The detecting that the expansion device is connected to the expansion interface in the electric energy meter includes: When it is detected through the extension interface that the extension device is powered on, it is determined that the extension device is detected to be connected to the extension interface; The method further comprises: When it is detected that the expansion device is removed from the expansion interface, the communication between the metering module and the expansion device is stopped.

7. An electric energy meter expansion device, characterized in that: The device comprises: an access module, configured to receive, through the metering module in the electric energy meter, an identity authentication request sent by the extension device when detecting that the extension device is connected to the extension interface in the electric energy meter; the identity authentication request includes attribute information corresponding to the extension device; A connection module, used to establish a connection between the metering module and the extension device according to the identity authentication request; an authentication module, configured to perform identity authentication on the extension device based on the connection and the attribute information through the metering module, and obtain a corresponding identity authentication result; The extension module is used to execute the corresponding extended service according to the extended service application in the operating system of the metering module and the extension device when detecting that the identity authentication result is authentication passed.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and device for external equipment to safely access intelligent electric meter

    CN112367664A

  • Terminal identity authentication method and device, computer equipment and storage medium

    CN114697963A

  • Power-on starting method and device of electric energy meter, electronic equipment and storage medium

    CN115327466A

  • Embedded operating system software interface method supporting APP interconnection and intercommunication

    CN115378922A

  • Intelligent electric energy meter cost control operation method based on PDA handheld device

    CN117221766A

Cited By

  • Simplified modular expansion and control system

    CN119882577A