Smart meter and smart meter data acquisition system
By layering and modularly processing the data acquisition function in the smart meter software system, the problems of redundant codes, high resource occupation and high maintenance in the existing technology are solved, and the effects of clearer functional levels, simpler interaction, more compact code and lower resource occupation are achieved.
Patent Information
- Application Number
- CN202411561876.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-05
AI Technical Summary
The existing smart meter software system has high code redundancy, high resource space occupancy and high maintenance difficulty.
By performing layered and modular processing of the data acquisition functions in the smart meter software system, it is divided into data acquisition uplink processing layer, data acquisition inter-service layer, protocol layer and data acquisition downlink processing layer, to achieve a data acquisition function with clearer levels and simpler functional interaction.
It realizes the hierarchical and modularization of data acquisition functions, simplifies functional interaction, reduces the difficulty of code maintenance, and improves the code utilization rate and resource space occupancy.
Smart Images

Figure CN119183041B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent electricity consumption, and in particular relates to an intelligent electric meter and an intelligent electric meter data acquisition system. Background Art
[0002] The rail meter is a new type of smart meter, which is an electric power monitoring device installed on the electrical rail. It adopts a modular design and has the advantages of small size and easy installation compared to traditional wall-mounted meters. The rail meter not only has the electricity metering function of the traditional meter, but also has the data collection attribute of the terminal, that is, it collects data from the devices hanging below, including charging piles, energy meters and smart locks.
[0003] At present, the solution for rail-type electric meters to realize data collection of the hanging equipment is to improve its software system, including the new development of the uplink function code, which includes the reading, setting and method operation of the attributes of the collection tasks, collection plans and collection archives issued by the master station; and the downlink code used for data collection in the concentrator is moved to the code of the rail-type electric meter. These downlink codes include DLT645 protocol, DLT698 protocol and business processing of data collection. However, since the concentrator uses a multi-task system for concurrent data collection, while the rail meter uses a single-task system and a single line for data collection, the systems used by the data collection downlink codes of the concentrator and the rail-type electric meter are inconsistent, resulting in poor code integration, redundancy in the code, and more RAM space occupied. In addition, the downlink code of the concentrator is highly complex and difficult to modify, which is not conducive to code maintenance; the entire collection process of the concentrator is too deep, and the downlink code program is too nested, that is, the data collection function level is not clear, the modularization is not high, the program stack space requirements are large, and the code utilization rate is low. Summary of the invention
[0004] The purpose of the present invention is to provide a smart meter and a smart meter data acquisition system to solve the technical problems of high code redundancy, high resource space occupancy and high maintenance difficulty of the data acquisition function in the existing smart energy meter software system.
[0005] In order to solve the above technical problems, the present invention provides a smart meter data acquisition system, which includes a data acquisition uplink processing layer, a data acquisition intermediate service layer, a protocol layer and a data acquisition downlink processing layer; the data acquisition uplink processing layer is used to receive the acquisition instructions issued by the master station or the concentrator and send the acquisition instructions to the protocol layer, the data acquisition intermediate service layer is used to generate acquisition tasks according to the acquisition instructions processed by the protocol layer and send the acquisition tasks to the data acquisition downlink processing layer, the data acquisition downlink processing layer is used to obtain the data of the corresponding hanging devices in the hanging devices that are connected to the collection downlink processing layer in communication according to the acquisition task and send it to the protocol layer, and the protocol layer processes the received data and sends it to the data acquisition intermediate service layer.
[0006] Furthermore, the collection intermediate business layer includes a collection business module, which is used to register the collection data of the corresponding downstream device according to the downstream device identity information, collection time and collection plan in the collection instruction, and generate the collection task of the corresponding downstream device according to the collection time and collection plan in the collection instruction; wherein the collection plan includes collection data items, collection parameters and a set of downstream devices applicable to the collection plan.
[0007] Furthermore, the collection intermediate business layer also includes an agent module, which is used to generate an agent collection task according to the agent instruction issued by the main station or concentrator, and send the agent collection task to the data collection downlink processing layer. The data collection downlink processing layer obtains the data of the corresponding downstream device in the downstream device that is communicated with the collection downlink processing layer according to the agent collection task.
[0008] Furthermore, the acquisition intermediate business layer also includes a table search module, which is used to generate a table search task and send the table search task to the data acquisition downlink processing layer. The data acquisition downlink processing layer searches for the downstream device according to the table search task, and receives the downstream device identity information and corresponding data returned by the downstream device that has successfully communicated. The table search module generates a table search result for the corresponding downstream device based on the returned downstream device identity information and corresponding data.
[0009] Furthermore, the data acquisition downlink processing layer includes at least one of a downlink carrier business module and a downlink RS485 module; the downlink carrier business module is used to interact with the downstream device for data through a carrier channel, and the downlink RS485 module is used to interact with the downstream device for data through an RS485 channel.
[0010] Furthermore, the data acquisition uplink processing layer includes at least one of an uplink carrier service module, an uplink RS485 service module and an uplink Bluetooth service module; the uplink carrier service module is used to interact with the master station or concentrator through a carrier channel, the uplink RS485 service is used to interact with the master station or concentrator through an RS485 channel, and the uplink Bluetooth service is used to interact with the master station or concentrator through a Bluetooth channel.
[0011] The beneficial effects of the above technical solution are as follows: the present invention divides the data acquisition function into a data acquisition uplink processing layer, a data acquisition intermediate business layer, a protocol layer and a data acquisition downlink processing layer by performing hierarchical modular processing on the data acquisition function in the software system of the smart electric energy meter. The data acquisition uplink processing layer interacts with the main station or the concentrator to receive acquisition instructions. The data acquisition downlink processing layer interacts with the downstream devices to obtain the data of the corresponding downstream devices according to the acquisition tasks. The data acquisition uplink processing layer and the data acquisition downlink processing layer interact with the protocol layer to perform protocol conversion on the received acquisition instructions and the data of the downstream devices and send them to the data acquisition intermediate business layer. The data acquisition intermediate business layer generates an acquisition task according to the acquisition instruction processed by the protocol layer and sends the acquisition task to the data acquisition downlink processing layer. The data acquisition function of the smart meter is realized through the interaction between layers. The data acquisition function has a clearer hierarchy, simpler functional interaction, and is easier to operate and maintain. The hierarchical and modularized code is more compact, and there is no need to use multi-layer nesting. The code utilization rate is higher and the occupancy rate of resource space is lower.
[0012] In order to solve the above technical problems, the present invention also provides a smart electric meter, which software system includes a data acquisition uplink processing layer, a data acquisition intermediate business layer, a protocol layer and a data acquisition downlink processing layer; the data acquisition uplink processing layer is used to receive the acquisition instructions issued by the master station or the concentrator and send the acquisition instructions to the protocol layer, the data acquisition intermediate business layer is used to generate acquisition tasks according to the acquisition instructions processed by the protocol layer and send the acquisition tasks to the data acquisition downlink processing layer, the data acquisition downlink processing layer is used to obtain the data of the corresponding downstream device in the downstream device that is communicatively connected to the acquisition downlink processing layer according to the acquisition task and send it to the protocol layer, and the protocol layer processes the received data and sends it to the data acquisition intermediate business layer.
[0013] Furthermore, the collection intermediate business layer includes a collection business module, which is used to register the collection data of the corresponding downstream device according to the downstream device identity information, collection time and collection plan in the collection instruction, and generate the collection task of the corresponding downstream device according to the collection time and collection plan in the collection instruction; wherein the collection plan includes collection data items, collection parameters and a set of downstream devices applicable to the collection plan.
[0014] Furthermore, the collection intermediate business layer also includes an agent module, which is used to generate an agent collection task according to the agent instruction issued by the main station or concentrator, and send the agent collection task to the data collection downlink processing layer. The data collection downlink processing layer obtains the data of the corresponding downstream device in the downstream device that is communicated with the collection downlink processing layer according to the agent collection task.
[0015] Furthermore, the acquisition intermediate business layer also includes a table search module, which is used to generate a table search task and send the table search task to the data acquisition downlink processing layer. The data acquisition downlink processing layer searches for the downstream device according to the table search task, and receives the downstream device identity information and corresponding data returned by the downstream device that has successfully communicated. The table search module generates a table search result for the corresponding downstream device based on the returned downstream device identity information and corresponding data.
[0016] The beneficial effects of the above technical solution are as follows: the present invention divides the data acquisition function into a data acquisition uplink processing layer, a data acquisition intermediate business layer, a protocol layer and a data acquisition downlink processing layer by performing hierarchical modular processing on the data acquisition function in the software system of the smart electric energy meter. The data acquisition uplink processing layer interacts with the main station or the concentrator to receive acquisition instructions. The data acquisition downlink processing layer interacts with the downstream devices to obtain the data of the corresponding downstream devices according to the acquisition tasks. The data acquisition uplink processing layer and the data acquisition downlink processing layer interact with the protocol layer to perform protocol conversion on the received acquisition instructions and the data of the downstream devices and send them to the data acquisition intermediate business layer. The data acquisition intermediate business layer generates an acquisition task according to the acquisition instruction processed by the protocol layer and sends the acquisition task to the data acquisition downlink processing layer. The data acquisition function of the smart meter is realized through the interaction between layers. The data acquisition function has a clearer hierarchy, simpler functional interaction, and is easier to operate and maintain. The hierarchical and modularized code is more compact, and there is no need to use multi-layer nesting. The code utilization rate is higher and the occupancy rate of resource space is lower. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a data acquisition system framework diagram of an embodiment of the smart meter data acquisition system of the present invention. DETAILED DESCRIPTION
[0018] In order to make the objectives, technical solutions and advantages of the present invention more clear, the specific implementation modes of the present invention are further described below in conjunction with the accompanying drawings.
[0019] The present invention performs layered and modular processing on the data acquisition function in the smart meter software system, divides the data acquisition function into four levels, makes the data acquisition function level clearer, modularizes each complex function in each level, makes each sub-function module simpler, easier to operate and maintain, and makes the layered and modularized code more compact, making the implementation of data acquisition more reasonable without the use of multi-layer nesting, with higher code utilization and lower resource space occupancy.
[0020] Smart meter data acquisition system implementation example:
[0021] The present invention provides a smart meter data collection system, which is a software system and is set in the smart meter. Figure 1 As shown, it includes a data acquisition uplink processing layer, a data acquisition intermediate service layer, a protocol layer, and a data acquisition downlink processing layer. The data acquisition uplink processing layer is used to interact with the master station or concentrator for data, receive the acquisition instructions sent by the master station or concentrator, and send the acquisition instructions to the protocol layer for processing. The data acquisition intermediate service layer is used to generate acquisition tasks according to the acquisition instructions processed by the protocol layer and send the acquisition tasks to the data acquisition downlink processing layer. The data acquisition downlink processing layer is used to obtain the data of the corresponding hanging device in the hanging device connected to the collection downlink processing layer according to the acquisition task and send it to the protocol layer. The protocol layer processes the collected data and sends it to the data acquisition intermediate service layer.
[0022] The functional modules of each layer are as follows:
[0023] 1. Data collection uplink processing layer.
[0024] It includes at least one of an uplink carrier business module, an uplink RS485 business module and an uplink Bluetooth business module. The uplink carrier business module is used to exchange data with the master station or concentrator through the carrier channel, and is mainly responsible for receiving the uplink data frame of the carrier channel and sending the response frame. The uplink RS485 business module is used to exchange data with the master station or concentrator through the RS485 channel, and is mainly responsible for receiving the uplink data frame of the RS485 channel and sending the response frame. The uplink Bluetooth business module is used to exchange data with the master station or concentrator through the Bluetooth channel, and is mainly responsible for receiving the uplink data frame of the Bluetooth channel and sending the response frame. The uplink data frame includes the collection instruction sent by the master station or concentrator, and the response frame refers to the reply to the received uplink data frame. The data collection uplink processing layer receives the collection instruction sent by the master station or concentrator based on the uplink carrier business module, the uplink RS485 business module or the uplink Bluetooth business module, and sends the collection instruction to the protocol layer for processing.
[0025] 2. Data collection downlink processing layer.
[0026] It includes at least one of a downlink carrier service module and a downlink RS485 module. The downlink carrier service module is used to exchange data with the downstream device through the carrier channel, and is mainly responsible for the transmission of the acquisition downlink device frame through the carrier channel and the reception and processing of the downlink device response frame. The downlink RS485 module is used to exchange data with the downstream device through the RS485 channel, and is mainly responsible for the transmission of the acquisition downlink device frame through the RS485 channel and the reception and processing of the downlink device response frame. The acquisition downlink processing layer obtains the data of the corresponding downlink device in the downlink device that is connected to the acquisition downlink processing layer in communication based on the downlink carrier service module or the downlink RS485 module.
[0027] 3. Collect the intermediate business layer.
[0028] It includes a collection business module, which is used to execute the scheduled collection tasks sent by the master station or concentrator through the uplink data frame. The uplink data frame is a collection instruction. The collection instruction includes the collection plan, collection time and the archive of the hanging device to be collected. The archive includes the identity information of the hanging device. The collection plan contains the set of hanging devices applicable to the collection plan, the collection data items and the collection parameters. The collection parameters refer to the archive parameters of the hanging device, such as the communication address and baud rate of the hanging device. The collection data items include current, voltage and electricity. The collection business module registers the corresponding hanging device collection data according to the hanging device identity information, collection time and collection plan in the collection instruction, generates the collection task of the corresponding hanging device according to the collection time and collection plan in the collection instruction, and reads and configures the archive parameters according to the archive parameters of the hanging device in the collection instruction.
[0029] The collection intermediate business layer also includes a table search module and an agent module. The table search module is mainly responsible for the data registration of the table search function, the reading and configuration of the table search parameters, and the processing of the table search task. It is used to generate a table search task after the installation of the smart meter's hanging device is completed, and send the table search task to the data collection downlink processing layer. The data collection downlink processing layer conducts communication search for the hanging device according to the table search task. After the data collection downlink processing layer successfully communicates with the hanging device, it receives the hanging device identity information returned by the hanging device that successfully communicates. The table search module generates the corresponding hanging device table search result according to the returned hanging device identity information and corresponding data.
[0030] The proxy module is mainly responsible for the related functional processing of proxy types 1, 2 and 7 in the DLT698 protocol. It is used to generate proxy collection tasks according to the proxy instructions issued by the master station or concentrator, and send the proxy collection tasks to the data collection downlink processing layer. The data collection downlink processing layer collects the data of the corresponding downstream devices in real time according to the proxy collection tasks. Proxy type 1 refers to reading the contents of multiple data items of multiple devices, proxy type 2 refers to reading the recorded data contents of the specified device, and proxy type 7 refers to the command transparently forwarded by the master station to the downstream device for execution.
[0031] 4. Protocol layer.
[0032] It includes at least one of the DLT 645 protocol module and the DLT 698 protocol module. The DLT 645 protocol module is mainly responsible for parsing and processing uplink frames and packetizing and processing downlink frames for data transmission using the DLT 645 protocol. The DLT 698 protocol module is mainly responsible for parsing and processing uplink frames and packetizing and processing downlink frames for data transmission using the DLT 698 protocol.
[0033] The protocol layer also includes a 376.2 protocol module, which mainly processes the module link layer packet processing of downlink frames that use the 376.2 protocol for data transmission.
[0034] The configuration process of acquisition parameters (such as 6000, 6001, 6012, 6013, 6014 and 6015 in the DLT698 protocol), table search parameters (such as 6002 and 6003 in the DLT698 protocol) and proxy parameters includes: the operation and maintenance personnel send parameter setting frames through the master station or concentrator, the uplink carrier business module, uplink RS485 business module or uplink Bluetooth business module in the acquisition uplink processing layer receives the parameter setting frame, and after processing in the DLT 645 protocol module or DLT 698 protocol module of the protocol layer, the parameters are configured in the acquisition intermediate business layer. After the configuration is successful, the response message is returned to the protocol layer, and the protocol layer sends the processed response message to the acquisition uplink processing layer. The parameter reading process is similar to the configuration process.
[0035] When executing a scheduled collection task, the collection intermediate business layer reads the saved collection instruction, reads the corresponding collection plan information according to the collection plan number saved in the collection instruction, searches the archive for the collection data items of the downstream devices according to the set of downstream devices in the collection plan information, generates collection frames regularly and sends them to the data collection downlink processing layer, and the data collection downlink processing layer returns the data returned by the downstream devices to the collection intermediate business layer by the original path. When executing a table search task, the collection intermediate business layer generates a table search frame and sends it to the collection downlink processing layer, and the downstream devices return the data of successful or failed communication to the collection intermediate business layer by the original path. When executing proxy permissions, the collection intermediate business layer generates a proxy transparent frame and sends it to the data collection downlink processing layer, and the collection downlink processing layer returns the response data to the collection intermediate business layer by the original path.
[0036] The collection intermediate business layer is also used to store data sent by the downstream devices. The collection downlink processing layer directly forwards the downlink device response frame sent by the downstream device during the proxy task or table search task to the collection business intermediate layer for storage. The downlink device response frame sent by the downstream device during the collection task is processed by the protocol layer and then forwarded to the collection business intermediate layer for storage.
[0037] Smart meter implementation example:
[0038] The present invention further provides a smart meter, including a software system. The software system is a smart meter data acquisition system introduced in the smart meter data acquisition system embodiment, which will not be described in detail here.
Claims
1. A smart meter data acquisition system, characterized in that: The acquisition system includes a data acquisition uplink processing layer, a data acquisition intermediate service layer, a protocol layer and a data acquisition downlink processing layer; the data acquisition uplink processing layer is used to receive the acquisition instructions issued by the master station or the concentrator and send the acquisition instructions to the protocol layer, the data acquisition intermediate service layer is used to generate acquisition tasks according to the acquisition instructions processed by the protocol layer and send the acquisition tasks to the data acquisition downlink processing layer, the data acquisition downlink processing layer is used to obtain the data of the corresponding downlink device in the downlink device that is connected to the acquisition downlink processing layer in communication according to the acquisition task and send it to the protocol layer, and the protocol layer processes the received data and sends it to the data acquisition intermediate service layer; The collection intermediate service layer includes a collection service module, which is used to register the corresponding hanging device collection data according to the hanging device identity information, collection time and collection plan in the collection instruction, and generate the corresponding hanging device collection task according to the collection time and collection plan in the collection instruction; wherein the collection plan includes collection data items, collection parameters and a hanging device set applicable to the collection plan; The data acquisition intermediate service layer also includes an agent module, which is used to generate an agent acquisition task according to the agent instruction issued by the master station or the concentrator, and issue the agent acquisition task to the data acquisition downlink processing layer, and the data acquisition downlink processing layer obtains the data of the corresponding downlink device in the downlink device that is connected to the acquisition downlink processing layer in communication according to the agent acquisition task; The acquisition intermediate business layer also includes a table search module, which is used to generate a table search task and send the table search task to the data acquisition downlink processing layer. The data acquisition downlink processing layer searches the downstream device according to the table search task, and receives the downstream device identity information and corresponding data returned by the downstream device that has successfully communicated. The table search module generates a table search result for the corresponding downstream device based on the returned downstream device identity information and corresponding data.
2. The smart meter data acquisition system according to claim 1, characterized in that: The data acquisition downlink processing layer includes at least one of a downlink carrier business module and a downlink RS485 module; the downlink carrier business module is used to interact with the downstream device through the carrier channel, and the downlink RS485 module is used to interact with the downstream device through the RS485 channel.
3. The smart meter data acquisition system according to claim 1 or 2, characterized in that: The data acquisition uplink processing layer includes at least one of an uplink carrier business module, an uplink RS485 business module and an uplink Bluetooth business module; the uplink carrier business module is used to interact with the master station or concentrator through a carrier channel, the uplink RS485 business is used to interact with the master station or concentrator through an RS485 channel, and the uplink Bluetooth business is used to interact with the master station or concentrator through a Bluetooth channel.
4. A smart electric meter, comprising a software system, characterized in that: The software system includes a data acquisition uplink processing layer, a data acquisition intermediate service layer, a protocol layer and a data acquisition downlink processing layer; the data acquisition uplink processing layer is used to receive the acquisition instructions issued by the master station or the concentrator and send the acquisition instructions to the protocol layer, the data acquisition intermediate service layer is used to generate acquisition tasks according to the acquisition instructions processed by the protocol layer and send the acquisition tasks to the data acquisition downlink processing layer, the data acquisition downlink processing layer is used to obtain the data of the corresponding downlink device in the downlink device that is connected to the acquisition downlink processing layer in communication according to the acquisition task and send it to the protocol layer, and the protocol layer processes the received data and sends it to the data acquisition intermediate service layer; The collection intermediate service layer includes a collection service module, which is used to register the corresponding hanging device collection data according to the hanging device identity information, collection time and collection plan in the collection instruction, and generate the corresponding hanging device collection task according to the collection time and collection plan in the collection instruction; wherein the collection plan includes collection data items, collection parameters and a hanging device set applicable to the collection plan; The data acquisition intermediate service layer also includes an agent module, which is used to generate an agent acquisition task according to the agent instruction issued by the master station or the concentrator, and issue the agent acquisition task to the data acquisition downlink processing layer, and the data acquisition downlink processing layer obtains the data of the corresponding downlink device in the downlink device that is connected to the acquisition downlink processing layer in communication according to the agent acquisition task; The acquisition intermediate business layer also includes a table search module, which is used to generate a table search task and send the table search task to the data acquisition downlink processing layer. The data acquisition downlink processing layer searches the downstream device according to the table search task, and receives the downstream device identity information and corresponding data returned by the downstream device that has successfully communicated. The table search module generates a table search result for the corresponding downstream device based on the returned downstream device identity information and corresponding data.
Citation Information
Patent Citations
Electricity consumption information acquisition control system and method based on low code
CN116708524A
And hardware equipment is used for acquiring user ammeter load identification data
CN210781189U