A smart electric energy meter design method and system

Connecting the smart IoT energy meter through the PC and the virtual bus coordinator solves the problem of cumbersome development and debugging of smart energy meter software and achieves real-time verification and efficient development.

CN114019230BActive Publication Date: 2024-09-27WUHAN SAN FRAN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111295961.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-03
Publication Date
2024-09-27
Estimated Expiration
2041-11-03

AI Technical Summary

Technical Problem

The existing software development and debugging methods for smart energy meters are cumbersome, resulting in low efficiency and are not suitable for the development of online hardware simulation.

Method used

The PC is used to connect the smart IoT energy meter with the virtual bus coordinator, and the data interaction channel is determined through the virtual bus coordinator to realize the transmission and debugging of the instructions to be developed, which improves development efficiency.

Benefits of technology

Real-time verification of the function and correctness of the smart IoT energy meter application is achieved, simplifying the development process and improving development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114019230B
    Figure CN114019230B
Patent Text Reader

Abstract

The present application provides a method and system for designing a smart electric energy meter. Applied to a design system, the design system includes a PC and a virtual bus coordinator, the virtual bus coordinator is connected to the PC and the smart Internet of Things electric energy meter, and the method includes: initiating a to-be-developed instruction through the PC, and sending the to-be-developed instruction to the virtual bus coordinator, the PC running a development environment for the smart Internet of Things electric energy meter software; determining a data interaction channel for transmitting the to-be-developed instruction from the PC to the target functional module of the smart Internet of Things electric energy meter through the virtual bus coordinator; transmitting the to-be-developed instruction to the target functional module of the smart Internet of Things electric energy meter through the data interaction channel, so as to realize the operation and debugging of the target functional module according to the to-be-developed instruction. By cross-platform transplantation of the application program and determining the data interaction channel of the program instruction by the virtual bus coordinator, the operation and real-time debugging of the electric energy meter are realized, and the program development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent measurement, and more specifically, to a design method and system for an intelligent electric energy meter. Background Art

[0002] At present, commonly used smart energy meters include smart IoT energy meters. Based on traditional energy meters, smart IoT energy meters introduce embedded operating systems to support the installation, uninstallation, upgrade, and stop of multiple applications. However, the multiple applications of this embedded operating system are not suitable for development in the form of online hardware simulation.

[0003] In order to solve the above problems, the existing method of developing and debugging electric energy meter software is to print out the relevant information, that is, the parameters and return result values ​​of the program execution are output on the console in the line, the previous line or the next line where the error is most likely to occur, and check whether the output result value is the required value. This printing output method requires the binary file generated by the application compilation to be downloaded to the meter CPU through the common serial port Ymodem protocol. During the development stage, the function and correctness of the application need to be frequently verified. If it needs to be downloaded every time, the process is extremely cumbersome, resulting in low efficiency of development and debugging. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a smart electric energy meter design method and system to improve the efficiency of smart IoT electric energy meter software development and debugging.

[0005] In a first aspect, an embodiment of the present application provides a smart electric energy meter design method, which is applied to a design system, wherein the design system includes a PC and a virtual bus coordinator, wherein the virtual bus coordinator is connected to the PC and the smart IoT electric energy meter, and the method includes: initiating a to-be-developed instruction through the PC, and sending the to-be-developed instruction to the virtual bus coordinator, wherein a development environment of smart IoT electric energy meter software is running on the PC; determining a data interaction channel through the virtual bus coordinator for transmitting the to-be-developed instruction from the PC to a target functional module of the smart IoT electric energy meter, wherein the smart IoT electric energy meter includes multiple functional modules, and the target functional module is one of the multiple functional modules; transmitting the to-be-developed instruction to the target functional module of the smart IoT electric energy meter through the data interaction channel, so as to realize operation and debugging of the target functional module according to the to-be-developed instruction.

[0006] In the embodiment of the present application, since the PC side runs a development environment for the smart IoT electric energy meter software, the smart IoT electric energy meter and the PC side are communicated through a virtual bus coordinator. The PC side can initiate instructions to be developed, and the virtual bus coordinator determines a data interaction channel for transmitting the instructions to be developed from the PC side to the smart IoT electric energy meter side. The instructions to be developed are transmitted to the target functional module of the smart IoT electric energy meter side through the data interaction channel. The smart IoT electric energy meter can be operated and debugged according to the instructions to be developed, thereby verifying the function and correctness of the meter-side application in real time, thereby improving the efficiency of the smart IoT electric energy meter software development.

[0007] Furthermore, the PC end is provided with a first virtual bus interface, and the virtual bus coordinator is provided with a second virtual bus interface. The PC end is communicatively connected with the virtual bus coordinator through the first virtual bus interface, and the virtual bus coordinator is connected with the smart IoT electric energy meter through the second virtual bus interface. The instruction to be developed includes an interface subclass identifier, and the data interaction channel for transmitting the instruction to be developed from the PC end to the target functional module of the smart IoT electric energy meter is determined by the virtual bus coordinator, including: sending the instruction to be developed to the second virtual bus interface through the first virtual bus interface; identifying the interface subclass identifier through the second virtual bus interface, and determining the target functional module according to the interface subclass identifier; and determining the data interaction channel of the instruction to be developed according to the target functional module through the virtual bus coordinator.

[0008] In an embodiment of the present application, a data interaction channel from a PC to a target functional module of an intelligent IoT electric energy meter is determined through a virtual bus coordinator. A first virtual bus interface is provided on the PC for sending instructions to be developed to the virtual bus coordinator. A second virtual bus interface is provided in the virtual bus coordinator. The interface subclass identifier in the instructions to be developed is identified through the second virtual bus interface to determine the target functional module of the intelligent IoT electric energy meter. Therefore, the virtual bus coordinator can serve as a bridge between the PC and the intelligent IoT electric energy meter, thereby determining the data interaction channel from the PC to the intelligent IoT electric energy meter and realizing the transmission of instructions to be developed.

[0009] Furthermore, the data interaction channel includes a virtual bus bearer coordination conversion channel and a virtual bus bearer channel. The virtual bus bearer coordination conversion channel is the communication channel between the first virtual bus interface and the virtual bus coordinator, and the virtual bus bearer channel is the physical channel between the smart IoT electric energy meter and the second virtual bus interface.

[0010] In the embodiment of the present application, the data interaction channel can be divided into a virtual bus bearer coordination conversion channel and a virtual bus bearer channel. The virtual bus bearer coordination conversion channel is a communication channel between the first virtual bus interface of the PC end and the virtual bus coordinator, which realizes the transmission of the instruction to be developed from the PC end to the virtual bus coordinator. The virtual bus bearer channel is a physical channel between the second virtual bus interface of the virtual bus coordinator and the smart IoT electric energy meter. The transmission of the instruction to be developed from the virtual bus coordinator to the smart IoT electric energy meter is realized through the virtual bus bearer channel. The overall transmission process of the instruction to be developed from the PC end to the smart IoT electric energy meter through the virtual bus coordinator is realized through the virtual bus bearer coordination conversion channel and the virtual bus bearer channel.

[0011] Furthermore, the second virtual bus interface includes multiple virtual hard bus interfaces, and transmitting the to-be-developed instructions to the target functional module of the smart IoT electric energy meter end through the data interaction channel includes: packaging the to-be-developed instructions through the first virtual bus interface to obtain the packaged to-be-developed instructions, and sending the packaged to-be-developed instructions to the virtual bus bearer coordination conversion channel through the network; unpacking the packaged to-be-developed instructions through the virtual bus bearer coordination conversion channel to obtain the to-be-developed instructions, and sending the to-be-developed instructions to the second virtual bus interface; sending the to-be-developed instructions to the target virtual hard bus interface through the second virtual bus interface, and the target virtual hard bus interface is one of the multiple virtual hard bus interfaces; sending the to-be-developed instructions to the target functional module through the target virtual hard bus interface and the virtual bus bearer channel.

[0012] In the embodiment of the present application, the instructions to be developed are packaged through the first virtual bus interface, and the packaged instructions to be developed are transmitted to the virtual bus bearer coordination conversion channel through the network, and then the packaged instructions to be developed are unpacked through the virtual bus bearer coordination conversion channel, and continue to be sent to the second virtual bus interface. Since the second virtual bus interface includes multiple virtual bus hard interfaces, the virtual bus hard interface and the target functional module of the smart IoT electric energy meter are connected through the virtual bus bearer channel. The instructions to be developed are sent to the target functional module through the target virtual hard bus interface and the virtual bus bearer channel, realizing data interaction between the PC and the target functional module in the smart IoT electric energy meter, and the target functional module can be run and debugged according to the instructions to be developed, completing the process of developing and debugging the electric energy meter software.

[0013] Further, sending the instruction to be developed to the target functional module through the target virtual hard bus interface and the virtual bus bearer channel includes: defining a first general structure and a second general structure through the second virtual bus interface, the first general structure being used to determine the hardware resources required by each functional module, and the second general structure being used to determine the driver program of each of the hardware resources; obtaining the hardware resources required by the target functional module according to the instruction to be developed and the first general structure through the target virtual hard bus interface; obtaining the driver program corresponding to the hardware resource according to the instruction to be developed and the second general structure through the target virtual hard bus interface; and driving the hardware resources according to the driver program through the target virtual hard bus interface.

[0014] In the embodiment of the present application, the first general structure and the second general structure are defined through the second virtual bus interface, the first general structure is used to determine the hardware resources of each functional module, the second general structure is used to determine the driver program driving the hardware resources, the hardware resources and driver program corresponding to the target functional module are determined through the target virtual hard bus interface, and the hardware resources are driven according to the driver program. The hardware resources of each functional module of the smart IoT electric energy meter and the driver program corresponding to the hardware resources are encapsulated through the second virtual bus interface, so as to realize the driving of the hardware resources in the target functional module and unify the data interaction mode of the underlying hardware.

[0015] Furthermore, after the target virtual hard bus interface drives the hardware resources according to the driver program, it also includes: sending operation result data to the target virtual hard bus interface through the virtual bus bearer channel, the operation result data being obtained after the instruction to be developed is run and debugged in the target functional module; obtaining the operation result data of the target functional module through the target virtual hard bus interface, and sending the operation result data to the second virtual bus interface; encapsulating the operation result data through the second virtual bus interface, and sending the operation result data to the virtual bus bearer coordination conversion channel; packaging the operation result data through the virtual bus bearer coordination conversion channel to obtain the packaged operation result data, and sending the packaged operation result data to the first virtual bus interface through the network; unpacking the packaged operation result data through the first virtual bus interface to obtain the operation result data, so as to display the operation result data.

[0016] In the embodiment of the present application, since the operation result data is generated after the target functional module is run and debugged according to the instructions to be developed, the operation result data is sent to the PC end through the virtual bus bearer channel, the target virtual hard bus interface, the second virtual bus interface, the virtual bus bearer coordination conversion channel, and the first virtual bus interface. The operation result data is sent to the PC end through the virtual bus coordinator, the display of the operation result data on the PC end is realized, and the data transmission process from the smart IoT electric energy meter to the PC end is completed.

[0017] Furthermore, before initiating the instruction to be developed through the PC, the method also includes: receiving key data of the key device of the smart IoT electric energy meter through the virtual bus bearer channel, and sending the key data to the second virtual bus interface, the key data including the interface subclass identifier; encapsulating the key data through the second virtual bus interface, and sending the key data to the virtual bus bearer coordination conversion channel; packaging the key data through the virtual bus bearer coordination conversion channel to obtain the packaged key data, and sending the packaged key data to the first virtual bus interface through the network; unpacking the packaged key data through the first virtual bus interface to obtain the key data, reading the interface subclass identifier in the key data, and sending the key data to the PC to generate the instruction to be developed.

[0018] In the embodiment of the present application, since the instruction to be developed can be generated by the key device of the smart IoT electric energy meter, the key data of the key device of the smart IoT electric energy meter is received through the virtual bus bearer channel, and the key data includes the interface subclass identifier. The key data is sent through the virtual bus bearer channel, the second virtual bus interface, and the virtual bus bearer coordination conversion channel. The interface subclass identifier in the key data is identified through the first virtual bus interface and identified as a key device, thereby realizing the generation of the instruction to be developed in the PC side, enabling the instruction to be developed to be generated by the key device on the smart IoT electric energy meter side, and further expanding the debugging method of the smart IoT electric energy meter software.

[0019] Further, receiving the instruction to be developed through the first virtual bus interface and sending the instruction to be developed to the second virtual bus interface includes: determining that the first virtual bus interface and the second virtual bus interface are at the same clock frequency; sending the instruction to be developed to the second virtual bus interface through the first virtual bus interface according to the same clock frequency to achieve synchronous transmission of the instruction to be developed.

[0020] In the embodiment of the present application, since the first virtual bus interface is located at the PC end and the second virtual bus interface is located at the virtual bus coordinator, the PC end and the virtual bus coordinator are connected through a communication channel, and the first virtual bus interface and the second virtual bus interface are at the same clock frequency. Since the clock frequencies of the sender and receiver of the instruction to be developed are consistent, synchronous transmission of the instruction to be developed is achieved, ensuring the timing and communication consistency of sending and receiving data.

[0021] Furthermore, after unpacking the packaged operation result data through the first virtual bus interface to obtain the operation result data, the method also includes: storing the operation result data through the PC end; generating an image based on the operation result data through the PC end, and the image is used to record the change process of the operation result data.

[0022] In an embodiment of the present application, after obtaining the operation result data through the first virtual bus interface, the operation result data can be stored through the PC, and an image can be generated based on the operation result data to record the change process of the operation result data, thereby realizing the persistence process of the operation result data, and using images to represent the change process of the operation result data to achieve an intuitive display of the operation result data.

[0023] In a second aspect, an embodiment of the present application provides a smart electric energy meter design system, the system comprising: a PC, a virtual bus coordinator and a smart IoT electric energy meter; wherein the virtual bus coordinator is connected to the PC and the smart IoT electric energy meter respectively; the PC is used to initiate instructions to be developed, the application is transplanted from the smart IoT electric energy meter to the PC, and the PC runs a development environment for smart IoT electric energy meter software; the virtual bus coordinator is used to determine a data interaction channel for transmitting instructions to be developed from the PC to a target functional module of the smart IoT electric energy meter; the virtual bus coordinator is also used to transmit the instructions to be developed to the target functional module of the smart IoT electric energy meter through the data interaction channel, the smart IoT electric energy meter comprises multiple functional modules, and the target functional module is one of the multiple functional modules; the smart IoT electric energy meter is used to run and debug according to the instructions to be developed, obtain operation result data, and send the operation result data to the virtual bus coordinator.

[0024] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a bus, wherein the processor and the memory communicate with each other through the bus;

[0025] The memory stores program instructions that can be executed by the processor, and the processor can execute the method of the first aspect by calling the program instructions.

[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including:

[0027] The computer-readable storage medium stores computer instructions, which cause the computer to execute the method of the first aspect.

[0028] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 A flowchart of a method for developing software for a smart electric energy meter provided in an embodiment of the present application;

[0031] Figure 2 A schematic diagram of the structure of a smart electric energy meter software design system provided in an embodiment of the present application;

[0032] Figure 3 A schematic diagram of hardware connection of a smart energy meter provided in an embodiment of the present application;

[0033] Figure 4 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0035] Figure 1 This is a flow chart of a method for developing software for a smart energy meter provided in the embodiment of the present application. It can be understood that the smart IoT energy meter provided in the embodiment of the present application refers to a smart IoT energy meter that introduces an embedded operating system and can support the installation, uninstallation, upgrade, and stop of multiple APP applications. The embodiment of the present application does not specify the model and type of the smart IoT energy meter. Figure 1 As shown, the method includes:

[0036] Step 101: initiating a to-be-developed instruction through the PC end, and sending the to-be-developed instruction to the virtual bus coordinator, wherein the PC end runs a development environment of the smart IoT electric energy meter software;

[0037] In the specific implementation process, the PC side runs the development environment of the smart IoT electric energy meter, which is ported from the software of the smart IoT electric energy meter to the PC side across platforms. The instructions to be developed can be initiated by the PC side software. The instructions to be developed can be various program instructions initiated by the PC side to complete the operation and debugging process of the smart IoT electric energy meter. For example, the PC side software can complete demand measurement, metering management, synchronous clock, rate and time period, event recording, event power reset, pulse and multi-function output, power protection, active reporting, data freezing and other functions, and can save various frozen data, realize external communication, and undertake the external communication routing of the metering module and the expansion module. Each function can be regarded as a set of instructions to be developed, which are initiated by the PC side software. The embodiment of this application does not limit the content of the instructions to be developed. For example: create a metering core communication thread through the PC application, and initiate a command to obtain synchronous data every 500ms.

[0038] Step 102: Determine, through the virtual bus coordinator, a data interaction channel for transmitting instructions to be developed from the PC to a target functional module of the smart IoT electric energy meter, wherein the smart IoT electric energy meter includes multiple functional modules, and the target functional module is one of the multiple functional modules.

[0039] In the specific implementation process, the smart IoT electric energy meter includes multiple functional modules, each of which represents a different hardware device of the smart IoT electric energy meter, and is used to complete different functions of the smart IoT electric energy meter. The functional modules can be an Electric Erasable Programmable Read-Only Memory module (EEPROM, hereinafter referred to as E2), LCD liquid crystal display module, Flash memory module, metering core module, A-type expansion module module, B-type expansion module module 1, B-type expansion module module 2, local Bluetooth and buttons and other functional modules. This application does not limit the types of functional modules. The data interaction channel can be a network communication channel or a physical channel. This application does not limit the types of data interaction channels. It can be understood that multiple data interaction channels can be determined by the virtual bus coordinator, and the target functional module of the smart IoT electric energy meter is determined according to the instructions to be developed. The data interaction channel of the instructions to be developed can be determined by the PC end and the target functional module.

[0040] Step 103: transmitting the instruction to be developed to the target function module of the smart IoT electric energy meter through the data interaction channel, so as to run and debug the target function module according to the instruction to be developed.

[0041] In the specific implementation process, after the instruction to be developed is transmitted to the target function module through the data interaction channel, the target function module can be operated according to the instruction to be developed. The operation status of the target function module can be used to check whether the function is normal. By continuously changing the instruction to be developed, the operation status analysis of the target function module can be realized, and the online simulation development of the target function module of the smart IoT electric energy meter can be realized. For example: initiating a data display command through the PC end can realize the data display function of the LCD liquid crystal at the end of the smart IoT electric energy meter, and determine whether the LCD liquid crystal display module is working normally.

[0042] On the basis of the above embodiment, the PC end is provided with a first virtual bus interface, the virtual bus coordinator is provided with a second virtual bus interface, the PC end is communicated and connected with the virtual bus coordinator through the first virtual bus interface, the virtual bus coordinator is connected with the smart IoT electric energy meter through the second virtual bus interface, the instruction to be developed includes an interface subclass identifier, and the data interaction channel for transmitting the instruction to be developed from the PC end to the target functional module of the smart IoT electric energy meter determined by the virtual bus coordinator includes:

[0043] Sending the instruction to be developed to the second virtual bus interface through the first virtual bus interface;

[0044] identifying the interface subclass identifier through the second virtual bus interface, and determining the target functional module according to the interface subclass identifier;

[0045] The data interaction channel of the instruction to be developed is determined according to the target functional module by the virtual bus coordinator.

[0046] In a specific implementation, the first virtual bus interface is set on the PC side to realize the connection between the PC side and the virtual bus coordinator. The first virtual bus interface can be implemented by software, which is equivalent to the middle layer. It is mainly used to abstract the relationship between the PC-side application and the hardware platform, provide a hardware platform for the PC-side application, hide the hardware interface details between the PC side and the virtual bus coordinator, and facilitate the cross-platform porting of the application. The second virtual bus interface is set in the virtual bus coordinator and can also be implemented by software. It is used to identify the target functional module according to the interface subclass identifier. The interface subclass identifier includes: E2, Flash, metering core, Bluetooth, LCD, button, type A expansion module, type B expansion module, etc., corresponding to the functional module. The target functional module of the smart IoT electric energy meter is determined by identifying the interface subclass identifier through the second virtual bus interface, realizing the data interaction between the PC side and the target functional module of the smart IoT electric energy meter, and determining the data interaction channel of the instruction to be developed.

[0047] Specifically, the second virtual bus interface mainly includes: a virtual bus identifier, a virtual bus control interface, a virtual bus data storage interface, a virtual bus input interface, and a virtual bus output interface, wherein the virtual bus identifier includes the interface subclass identifiers of each functional module (E2, Flash, metering core, Bluetooth, LCD, button, type A expansion module, type B expansion module, etc.). Subclass identifier id is added to each functional module. When the second virtual bus interface performs control / data storage / input / output operations, it first judges the interface subclass identifier to select the functional module corresponding to the identifier to realize data interaction with each functional module. In order to realize control / data storage / input / output operations, the following abstract models are defined on the bottom layer implementation program of the second virtual bus interface: Table 1 is a virtual bus input / output interface abstract model table, Table 2 is a data storage interface abstract model table, Table 3 is an uplink communication interface abstract model table, and Table 4 is a GPIO interface (General-purpose input / output general output type) abstract model table.

[0048] Table 1 Virtual bus input / output interface abstract model table

[0049]

[0050] Table 2 Data storage interface abstract model table

[0051]

[0052] Table 3 Uplink communication interface abstract model table

[0053]

[0054]

[0055] Table 4 GPIO port abstract model table

[0056]

[0057] Based on the above embodiment, the data interaction channel includes a virtual bus bearer coordination conversion channel and a virtual bus bearer channel. The virtual bus bearer coordination conversion channel is the communication channel between the first virtual bus interface and the virtual bus coordinator, and the virtual bus bearer channel is the physical channel between the smart IoT electric energy meter and the second virtual bus interface.

[0058] In the specific implementation process, the data interaction channel can be divided into a virtual bus bearer conversion channel and a virtual bus bearer channel. The virtual bus bearer coordination conversion channel is the communication channel between the PC and the virtual bus coordinator, and the virtual bus bearer channel is the physical channel between the smart IoT electric energy meter and the virtual bus coordinator. It can be understood that the virtual bus bearer channel includes a plurality of hardware channels connecting different functional modules of the virtual bus coordinator and the smart IoT electric energy meter, and is a hardware channel for realizing data interaction between the virtual bus coordinator and the target functional module.

[0059] On the basis of the above embodiment, the second virtual bus interface includes a plurality of virtual hard bus interfaces, and transmitting the to-be-developed instruction to the target functional module of the smart IoT electric energy meter end through the data interaction channel includes:

[0060] Packing the instructions to be developed through the first virtual bus interface to obtain the packaged instructions to be developed, and sending the packaged instructions to be developed to the virtual bus bearer coordination conversion channel through the network;

[0061] Unpacking the packaged instruction to be developed through the virtual bus bearer coordination conversion channel to obtain the instruction to be developed, and sending the instruction to be developed to the second virtual bus interface;

[0062] Sending the instruction to be developed to the target virtual hard bus interface through the second virtual bus interface, the target virtual hard bus interface being one of the multiple virtual hard bus interfaces;

[0063] The instruction to be developed is sent to the target functional module through the target virtual hard bus interface and the virtual bus bearer channel.

[0064] In the specific implementation process, the instructions to be developed are packaged through the first virtual bus interface to realize network transmission of the instructions to be developed, and the packaged instructions to be developed are sent to the virtual bus bearer coordination conversion channel through the network. When transmitted to the virtual bus coordinator, the virtual bus coordination conversion channel completes the unpacking and transmits the instructions to be developed to the second virtual bus interface. The second virtual bus interface includes multiple virtual hard bus interfaces. The virtual hard bus interface is used to connect the target functional module of the smart IoT electric energy meter. The virtual hard bus interface can be an E2 interface, a Flash interface, a metering core interface, a Bluetooth interface, an LCD interface, a button interface, and an extended communication interface.

[0065] On the basis of the above embodiment, the step of sending the instruction to be developed to the target functional module through the target virtual hard bus interface and the virtual bus bearer channel includes:

[0066] defining a first overall structure and a second overall structure through the second virtual bus interface, wherein the first overall structure is used to determine the hardware resources required by each functional module, and the second overall structure is used to determine a driver program for each of the hardware resources;

[0067] Acquiring hardware resources required by a target functional module through the target virtual hard bus interface according to the instruction to be developed and the first overall structure;

[0068] Obtaining a driver corresponding to the hardware resource through the target virtual hard bus interface according to the instruction to be developed and the second overall structure;

[0069] The hardware resource is driven according to the driver program through the target virtual hard bus interface.

[0070] In the specific implementation process, the first general structure and the second general structure are defined through the second virtual bus interface. The first general structure can be defined as platform_device, which is used to define the hardware resources required by each functional module, and contains all virtual hard bus interfaces, such as: metering chip, LCD, memory, Bluetooth, expansion module, etc. The main members of the structure should include: name module name; struct resource hardware resources (including resource type, register address, interrupt number, etc.); id module subclass identifier; num_resource the number of resources occupied by the hardware. Similarly, the second general structure can be defined as platform_driver to implement driver-related operations, and then the virtual hard bus matches platform_device with platform_driver. The virtual hard bus usage process includes: defining devices, registering devices, defining drivers, and registering drivers.

[0071] After defining a platform_device, you need to register it with the kernel through platform_register, and the kernel will put the platform_device into a device list. The virtual hard bus will be used to match the device list. When the match is successful, the probe function in the device list will be called to complete the final registration of the device.

[0072] After defining a platform_driver, it must also be registered with the kernel through platform_register. The kernel will put the platform_driver into a driver list. The bus will be used to match the driver list. When the match is successful, the probe function in the driver list will be called to complete the final registration of the driver.

[0073] In the data interaction process between the virtual bus coordinator and the smart IoT electric energy meter function module, the virtual bus data interaction bearer is used to realize the driving operation between different channels, and the driving operation can be a metering core driver, a management core driver, an LCD driver, a Bluetooth driver, etc. This application does not limit the specific program of the communication driver.

[0074] On the basis of the above embodiment, after the target virtual hard bus interface drives the hardware resource according to the driver, the method further includes:

[0075] Sending operation result data to the target virtual hard bus interface through the virtual bus bearer channel, the operation result data being obtained after the instruction to be developed is run and debugged in the target functional module;

[0076] Acquire the operation result data of the target functional module through the target virtual hard bus interface, and send the operation result data to the second virtual bus interface;

[0077] Encapsulating the operation result data through the second virtual bus interface, and sending the operation result data to the virtual bus bearer coordination conversion channel;

[0078] Packing the operation result data through the virtual bus bearer coordination conversion channel to obtain the packaged operation result data, and sending the packaged operation result data to the first virtual bus interface through the network;

[0079] The packaged operation result data is unpacked through the first virtual bus interface to obtain the operation result data, so as to realize display of the operation result data.

[0080] In the specific implementation process, the operation result data of the target functional module is obtained through the target virtual hard bus interface. The operation result data can be the reply data of various functional modules of the smart IoT electric energy meter, which is used by the PC to confirm whether the instruction to be developed is successfully executed in the electric energy meter.

[0081] Implementation method 1 of the above embodiment is, for example, a metering core synchronization data command, which includes:

[0082] S111: Create a metering chip communication thread through the PC application APP, and initiate a command to obtain synchronous data every 500ms;

[0083] S112: After receiving the synchronization data command through the first virtual bus interface of the PC, the command (including synchronization data, metering core interface subclass identifier, etc.) is packaged according to the virtual bus interface communication requirements, and sent to the virtual bus bearer coordination conversion channel of the virtual bus coordinator through the network;

[0084] S113: unpacking the command data after receiving it through the virtual bus bearer coordination conversion channel, and sending the unpacked command data to the second virtual bus interface;

[0085] S114: Sending command data to the second virtual bus interface through the virtual bus bearer channel;

[0086] S115: Reading the interface subclass identifier in the data through the second virtual bus interface to determine that the device is a metering core device, calling the corresponding virtual hard bus interface and sending the data to the metering core device through the virtual bus bearer channel;

[0087] S116: reply the operation result data through the metering core device, send the operation result data to the metering core virtual hard bus interface through the virtual bus bearer channel, send it to the virtual bus coordinator after abstract encapsulation through the second virtual bus interface, and then transmit it to the virtual bus bearer coordination conversion channel;

[0088] S117: Packing the operation result data through the virtual bus bearer coordination conversion channel, and then sending it to the first virtual bus interface through the network;

[0089] S118: Unpack the data through the first virtual bus interface and send it to the PC application APP.

[0090] Another implementation method 2 of the above embodiment is as follows: for example, a core data storage command is managed. The implementation method includes:

[0091] S121: Enable the minute freezing function through the PC application APP, freeze once every 15 minutes, and when data needs to be stored, send the data to be stored to the PC virtual bus interface;

[0092] S122: After receiving the data to be stored through the first virtual bus interface of the PC, the command (including synchronization data, metering core interface subclass identifier, etc.) is packaged according to the virtual bus interface communication requirements, and sent to the virtual bus bearer coordination conversion channel of the virtual bus coordinator through the network;

[0093] S123: unpacking the command data after receiving it through the virtual bus bearer coordination conversion channel, and sending the unpacked command data to the second virtual bus interface;

[0094] S124: Sending command data to the second virtual bus interface through the virtual bus bearer channel;

[0095] S125: Reading the interface subclass identifier in the data through the second virtual bus interface to determine that the device is a Flash storage device, calling the corresponding virtual hard bus interface and sending the data to the Flash storage device through the virtual bus bearer channel;

[0096] S126: replying the operation result data of whether the storage is successful or not through the Flash storage device, sending the operation result data to the virtual hard bus interface of the metering core through the virtual bus bearer channel, sending it to the virtual bus coordinator after abstract encapsulation through the second virtual bus interface, and then transmitting it to the virtual bus bearer coordination conversion channel;

[0097] S127: Packing the operation result data through the virtual bus bearer coordination conversion channel, and then sending it to the first virtual bus interface through the network;

[0098] S128: Unpack the data through the first virtual bus interface and send it to the PC application APP.

[0099] Based on the above embodiment, before initiating the instruction to be developed through the PC, the method further includes:

[0100] Receive key data of the key device of the smart IoT electric energy meter through the virtual bus bearer channel, and send the key data to the second virtual bus interface, where the key data includes an interface subclass identifier;

[0101] Encapsulating the key data through the second virtual bus interface and sending the key data to the virtual bus bearer coordination conversion channel;

[0102] Packing the key data through the virtual bus bearer coordination conversion channel to obtain the packed key data, and sending the packed key data to the first virtual bus interface through the network;

[0103] The packaged key data is unpacked through the first virtual bus interface to obtain the key data, the interface subclass identifier in the key data is read, and the key data is sent to the PC end to generate instructions to be developed.

[0104] In the specific implementation process, the key data is generated by the key device of the smart IoT electric energy meter and transmitted to the PC through the I / O port to generate the instructions to be developed and complete the subsequent data interaction actions. The specific implementation method is: I / O port data interaction process, which includes:

[0105] S131: key input, key data of the key device is transmitted through the virtual bus bearer channel, and is sent to the virtual bus bearer coordination conversion channel after being abstractly encapsulated by the virtual hard bus interface and the second virtual bus interface;

[0106] S132: Packing the data (including key information, key interface subclass identifier, etc.) through the virtual bus bearer coordination conversion channel, and sending it to the virtual bus interface of the PC through the network;

[0107] S133: Reading the interface subclass identifier in the data through the first virtual bus interface to determine that the device is a key device, unpacking the data and sending it to the PC application APP;

[0108] S134: detecting a key input signal through the PC application APP LCD display thread, starting the key rotation function, and issuing an LCD display request command;

[0109] S135: after receiving the display request command through the first virtual bus interface, the command (including key information, LCD interface subclass identifier, etc.) is packaged according to the virtual bus interface communication requirements, and sent to the virtual bus bearer coordination conversion channel of the virtual bus coordinator through the network;

[0110] S136: unpacking the command data after receiving it through the virtual bus bearer coordination conversion channel, and transmitting the unpacked data to the second virtual bus interface;

[0111] S137: Reading the interface subclass identifier in the data through the second virtual bus interface to determine that the device is a display device, calling the corresponding virtual hard bus interface and transmitting the data to the virtual bus bearer channel;

[0112] S138: Send the data to the display device through the virtual bus bearer channel for command execution.

[0113] Based on the above embodiment, the receiving the instruction to be developed through the first virtual bus interface and sending the instruction to be developed to the second virtual bus interface includes:

[0114] Determining that the first virtual bus interface and the second virtual bus interface are at the same clock frequency;

[0115] The instructions to be developed are sent to the second virtual bus interface through the first virtual bus interface according to the same clock frequency, so as to realize synchronous transmission of the instructions to be developed.

[0116] In the specific implementation process, the transmission of the instruction to be developed between the first virtual bus interface and the second virtual bus interface is realized by synchronous transmission. Synchronous transmission is a data transmission method that uses data blocks as transmission units. In synchronous transmission, the time interval between data blocks is fixed to specify their time relationship. A character or bit sequence is added to the head and tail of each data block to mark the beginning and end of a data block. Generally, a check sequence is also added to perform error control on the data block.

[0117] Synchronous transmission sends data signals in a synchronized clock rhythm, so in a serial data stream, the relative positions of each signal code element are fixed. By establishing synchronization between the first virtual bus interface and the second virtual bus interface, the clocks of both parties are adjusted to the same frequency, thereby achieving synchronous transmission of the instructions to be developed. For example: the virtual bus coordinator includes a virtual bus coordination bearer, through which the second virtual bus interface of the virtual bus coordinator can be adjusted to the same frequency, thereby achieving timing and communication synchronization of the second virtual bus interface.

[0118] On the basis of the above embodiment, after unpacking the packaged operation result data through the first virtual bus interface to obtain the operation result data, the method further includes:

[0119] Storing the operation result data through the PC terminal;

[0120] An image is generated by the PC according to the operation result data, and the image is used to record the change process of the operation result data.

[0121] In the specific implementation process, after obtaining the operation result data of the smart IoT electricity meter, the PC can store the operation result data through the PC application and generate an image based on the change process of the operation result data. The image can be the change process of the operation result data over time, or it can be an image formed by data obtained after the PC inputs different instructions. This application does not limit the specific content of the operation result data.

[0122] See also Figure 2The structural schematic diagram of the smart power meter software design system provided by the embodiment of the present application is shown; the system includes: a PC terminal 210, a virtual bus coordinator 220 and a smart IoT power meter 230; the virtual bus coordinator 220 is electrically connected to the PC terminal 210 and the smart IoT power meter 230 respectively, that is, a data interaction channel between the PC terminal 210 and the smart IoT power meter 230 can be realized through the virtual bus coordinator 220.

[0123] The PC end 210 is used to initiate the instruction to be developed. The application is transplanted to the PC end by the smart IoT electric energy meter 230 through cross-platform. The development environment of the smart IoT electric energy meter software is running in the PC end. The PC end 210 is provided with an application APP and a first virtual bus interface. The application APP is used to initiate the instruction to be developed and send it to the virtual bus coordinator 220 through the first virtual bus interface. Since the computing speed, logical computing ability and storage capacity of the PC end are better than those of the smart IoT electric energy meter, the use of the PC end 210 to run and debug the electric meter application and physical hardware on the smart IoT electric energy meter 230 can effectively improve the development efficiency of the electric energy meter software, and effectively realize the function of running the application in real time for development and debugging.

[0124] The virtual bus coordinator 220 is used to determine the data interaction channel for transmitting the instruction to be developed from the PC end 210 to the target functional module of the smart IoT electric energy meter 230. A second virtual bus interface and a virtual hard bus interface are provided in the virtual bus coordinator 220. The second virtual bus interface can identify the interface subclass identifier in the instruction to be developed, the target functional module can be identified through the interface subclass identifier, and the instruction to be developed can be sent to the target functional module through the virtual hard bus interface.

[0125] The virtual bus coordinator includes: a virtual bus bearer channel, a virtual bus bearer coordination conversion channel, a virtual bus coordination bearer and a virtual bus data interaction bearer; wherein, the virtual bus bearer channel is the physical channel of the IoT electric energy meter; the virtual bus bearer coordination conversion channel is a communication channel between the virtual bus interfaces of various access coordinators and electronic devices; the virtual bus coordination bearer is used to realize the timing and communication synchronization between the bus interfaces of various access coordinators; the virtual bus data interaction bearer is used to realize communication drive between different channels.

[0126] The virtual bus coordinator 220 is composed of a microcontroller unit (MCU) and various peripheral communication units, which realizes the connection between the PC end 210 and the smart IoT power meter 230, and shields the hardware differences between the hardware devices of the PC end 210 and the smart IoT power meter 230 through various bus interfaces, thereby realizing data interaction between the PC end 210 and the smart IoT power meter 230.

[0127] The virtual bus coordinator 220 is also used to transmit the instructions to be developed to the target functional module of the smart IoT electric energy meter 230 through the data interaction channel, and connect to the functional module through various virtual hard buses with multiple functional modules through the virtual hard bus interface. The virtual hard bus interface includes various virtual hard buses such as metering virtual hard bus, display virtual hard bus, storage virtual hard bus, Bluetooth virtual hard bus, signal input virtual hard bus, and extended communication virtual hard bus. Different virtual hard buses correspond to different virtual bus bearer channels, which act on the hardware channel of the smart IoT electric energy meter. The data interaction is encapsulated through the virtual hard bus, and the instructions to be developed are sent to the target functional module through the target hard bus interface and the virtual bus bearer channel, realizing a unified data interaction method for different hardware channels.

[0128] The smart IoT electric energy meter 230 is used to run and debug according to the instructions to be developed, obtain the operation result data, and send the operation result data to the virtual bus coordinator 220. The smart IoT electric energy meter application communicates with multiple functional modules through the virtual hard bus. The multiple functional modules here include: metering module, Bluetooth module, expansion module, etc.

[0129] Figure 3 The hardware connection diagram of a smart electric energy meter design system provided in the embodiment of the present application is provided in the embodiment of the present application. The smart IoT electric energy meter terminal provides hardware interfaces for various functional modules, including E2 memory, LCD liquid crystal, Flash memory, metering core, type A expansion module, type B expansion module 1, type B expansion module 2, local Bluetooth and button buses. The virtual bus coordinator includes various bus interfaces (I2C bus interface, SPI bus interface, UART bus interface and IO bus interface, etc.), MCU and RJ45 interface. The virtual bus coordinator is physically connected to the smart IoT electric energy meter terminal through various bus interfaces, and can also be physically connected to the PC terminal through the RJ45 interface.

[0130] Figure 4 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device includes: a processor (processor) 401, a memory (memory) 402 and a bus 403; wherein,

[0131] The processor 401 and the memory 402 interact with each other via the bus 403;

[0132] The processor 401 is used to call the program instructions in the memory 402 to execute the methods provided by the above method embodiments.

[0133] The processor 401 may be an integrated circuit chip with signal processing capabilities. The processor 401 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It may implement or execute various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0134] The memory 402 may include, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (EEPROM), etc.

[0135] This embodiment discloses a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments.

[0136] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the methods provided by the above-mentioned method embodiments.

[0137] In the embodiments provided in the present application, it should be understood that the disclosed methods and systems can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or interactive connection shown or discussed can be through some interactive interfaces, and the indirect coupling or interactive connection of devices or units can be electrical, mechanical or other forms.

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

[0139] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0140] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0141] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for designing a smart electric energy meter, characterized in that: Applied to a design system, the design system includes a PC and a virtual bus coordinator, the virtual bus coordinator is connected to the PC and a smart IoT electric energy meter, and the method includes: Initiating a to-be-developed instruction through the PC end, and sending the to-be-developed instruction to the virtual bus coordinator, wherein a development environment of a smart IoT electric energy meter software is running on the PC end; Determine, by the virtual bus coordinator, a data interaction channel for transmitting instructions to be developed from the PC to a target functional module of the smart IoT electric energy meter, wherein the smart IoT electric energy meter includes a plurality of functional modules, and the target functional module is one of the plurality of functional modules; Transmitting the instruction to be developed to the target function module of the smart IoT electric energy meter through the data interaction channel, so as to realize running and debugging of the target function module according to the instruction to be developed; The PC end is provided with a first virtual bus interface, the virtual bus coordinator is provided with a second virtual bus interface, the PC end is communicatively connected with the virtual bus coordinator through the first virtual bus interface, the virtual bus coordinator is connected with the smart IoT electric energy meter through the second virtual bus interface, the instruction to be developed includes an interface subclass identifier, and the data interaction channel for transmitting the instruction to be developed from the PC end to the target functional module of the smart IoT electric energy meter is determined by the virtual bus coordinator, including: Sending the instruction to be developed to the second virtual bus interface through the first virtual bus interface; identifying the interface subclass identifier through the second virtual bus interface, and determining the target functional module according to the interface subclass identifier; Determining the data interaction channel of the instruction to be developed according to the target functional module by the virtual bus coordinator; The data interaction channel includes a virtual bus bearer coordination conversion channel and a virtual bus bearer channel, wherein the virtual bus bearer coordination conversion channel is a communication channel between the first virtual bus interface and the virtual bus coordinator, and the virtual bus bearer channel is a physical channel between the smart IoT electric energy meter and the second virtual bus interface; The second virtual bus interface includes a plurality of virtual hard bus interfaces, and transmitting the to-be-developed instruction to the target functional module of the smart IoT electric energy meter end through the data interaction channel includes: Packing the instructions to be developed through the first virtual bus interface to obtain the packaged instructions to be developed, and sending the packaged instructions to be developed to the virtual bus bearer coordination conversion channel through the network; Unpacking the packaged instruction to be developed through the virtual bus bearer coordination conversion channel to obtain the instruction to be developed, and sending the instruction to be developed to the second virtual bus interface; Sending the instruction to be developed to a target virtual hard bus interface through the second virtual bus interface, wherein the target virtual hard bus interface is one of the multiple virtual hard bus interfaces; The instruction to be developed is sent to the target functional module through the target virtual hard bus interface and the virtual bus bearer channel.

2. The method according to claim 1, characterized in that The sending the instruction to be developed to the target functional module through the target virtual hard bus interface and the virtual bus bearer channel includes: defining a first overall structure and a second overall structure through the second virtual bus interface, wherein the first overall structure is used to determine the hardware resources required by each functional module, and the second overall structure is used to determine a driver program for each of the hardware resources; Acquiring hardware resources required by a target functional module through the target virtual hard bus interface according to the instruction to be developed and the first overall structure; Obtaining a driver corresponding to the hardware resource through the target virtual hard bus interface according to the instruction to be developed and the second overall structure; The hardware resource is driven according to the driver program through the target virtual hard bus interface.

3. The method according to claim 2, characterized in that After the hardware resource is driven by the driver through the target virtual hard bus interface, the method further includes: Sending operation result data to the target virtual hard bus interface through the virtual bus bearer channel, the operation result data being obtained after the instruction to be developed is run and debugged in the target functional module; Acquire the operation result data of the target functional module through the target virtual hard bus interface, and send the operation result data to the second virtual bus interface; Encapsulating the operation result data through the second virtual bus interface, and sending the operation result data to the virtual bus bearer coordination conversion channel; Packing the operation result data through the virtual bus bearer coordination conversion channel to obtain the packaged operation result data, and sending the packaged operation result data to the first virtual bus interface through the network; The packaged operation result data is unpacked through the first virtual bus interface to obtain the operation result data, so as to realize display of the operation result data.

4. The method according to claim 1, characterized in that: Before initiating the instruction to be developed through the PC, the method further includes: Receive key data of the key device of the smart IoT electric energy meter through the virtual bus bearer channel, and send the key data to the second virtual bus interface, where the key data includes an interface subclass identifier; Encapsulating the key data through the second virtual bus interface and sending the key data to the virtual bus bearer coordination conversion channel; Packing the key data through the virtual bus bearer coordination conversion channel to obtain the packed key data, and sending the packed key data to the first virtual bus interface through the network; The packaged key data is unpacked through the first virtual bus interface to obtain the key data, the interface subclass identifier in the key data is read, and the key data is sent to the PC end to generate instructions to be developed.

5. The method according to claim 1, characterized in that The receiving the instruction to be developed through the first virtual bus interface and sending the instruction to be developed to the second virtual bus interface comprises: Determining that the first virtual bus interface and the second virtual bus interface are at the same clock frequency; The instructions to be developed are sent to the second virtual bus interface through the first virtual bus interface according to the same clock frequency, so as to realize synchronous transmission of the instructions to be developed.

6. The method according to claim 3, characterized in that After unpacking the packaged operation result data through the first virtual bus interface to obtain the operation result data, the method further includes: Storing the operation result data through the PC terminal; An image is generated by the PC according to the operation result data, and the image is used to record the change process of the operation result data.

7. A smart electric energy meter design system, characterized in that: The system includes: a PC, a virtual bus coordinator and an intelligent IoT electric energy meter; Wherein, the virtual bus coordinator is connected to the PC end and the smart IoT electric energy meter respectively; The PC terminal is used to initiate a to-be-developed instruction and send the to-be-developed instruction to the virtual bus coordinator. A development environment of a smart IoT electric energy meter software runs in the PC terminal. The PC terminal is provided with a first virtual bus interface, and the virtual bus coordinator is provided with a second virtual bus interface. The PC terminal is connected to the virtual bus coordinator through the first virtual bus interface, and the virtual bus coordinator is connected to the smart IoT electric energy meter through the second virtual bus interface. The to-be-developed instruction includes an interface subclass identifier. The virtual bus coordinator is used to determine a data interaction channel for transmitting the instruction to be developed from the PC end to the target functional module of the smart IoT electric energy meter end; the virtual bus coordinator is also used to send the instruction to be developed to the second virtual bus interface through the first virtual bus interface; identify the interface subclass identifier through the second virtual bus interface, and determine the target functional module according to the interface subclass identifier; determine the data interaction channel of the instruction to be developed according to the target functional module through the virtual bus coordinator; wherein the data interaction channel includes a virtual bus bearer coordination conversion channel and a virtual bus bearer channel, the virtual bus bearer coordination conversion channel is the communication channel between the first virtual bus interface and the virtual bus coordinator, and the virtual bus bearer channel is the physical channel between the smart IoT electric energy meter and the second virtual bus interface; The virtual bus coordinator is also used to transmit the instruction to be developed to the target functional module of the smart IoT electric energy meter through the data interaction channel, the smart IoT electric energy meter includes multiple functional modules, and the target functional module is one of the multiple functional modules; the second virtual bus interface includes multiple virtual hard bus interfaces, and the virtual bus coordinator is also used to package the instruction to be developed through the first virtual bus interface, obtain the packaged instruction to be developed, and send the packaged instruction to be developed to the virtual bus bearer coordination conversion channel through the network; unpack the packaged instruction to be developed through the virtual bus bearer coordination conversion channel to obtain the instruction to be developed, and send the instruction to be developed to the second virtual bus interface; send the instruction to be developed to the target virtual hard bus interface through the second virtual bus interface, and the target virtual hard bus interface is one of the multiple virtual hard bus interfaces; send the instruction to be developed to the target functional module through the target virtual hard bus interface and the virtual bus bearer channel; The smart IoT electric energy meter is used to operate and debug according to the instruction to be developed, obtain operation result data, and send the operation result data to the virtual bus coordinator.