Unvarnished transmission meter reading management method
Through gateway equipment, the COSEM/DLMS protocol is used to perform transmissive meter reading management in the power system, the management complexity of the physical connection method of the power system without perception sub-meters is solved, efficient data collection and secure information transmission are realized, and sub-meters are simplified Management process.
Patent Information
- Application Number
- CN202411331519.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-07
AI Technical Summary
The prior art is difficult to realize the transmissive meter reading management of submeters without perception at the power system, resulting in complex management and inefficient efficiency.
Data exchange is performed through gateway devices using standard communication protocol COSEM/DLMS, and protocol conversion is performed when the transmissible task is idle. Transmissible protocol is converted into data link layer protocol, and sent to sub-tables through the RS485 bus, and is responsible for protocol conversion. and information transmission to ensure the integrity and security of information exchange between the main site and the sub-table.
实现了电力系统端无感知的子表物理连接方式透传抄表管理,提高了数据采集效率和信息安全性,减少了网关设备对子表的管理需求,避免了信息解析和存储,确保了信息传输 confidentiality and integrity.
Smart Images

Figure CN119277229A_ABST
Abstract
Description
Technical Field
[0001] The present invention is applied to the field of smart grid AMI (Advanced Metering Infrastructure) communication collection, especially to realize automatic meter reading based on the gateway transparent transmission protocol Gateway protocol defined by COSEM / DLMS, and realize a complete network system for controlling smart meters. Background Art
[0002] With the increasing use of AMI advanced measurement systems, remote automatic meter reading realizes two-way communication between the power system and user terminal equipment, improves the service level of the power system and the user's service experience, and realizes more convenient management.
[0003] The gateway device Gateway can provide transparent transmission protocol conversion and manage sub-meter devices physically connected to the RS485 bus. It is urgent to realize transparent transmission meter reading management without the power system end being aware of the physical connection mode of the sub-meter. Summary of the invention
[0004] The purpose of the present invention is to propose a transparent meter reading management method for the transparent meter reading management problem of the non-aware sub-meter physical connection mode at the power system end.
[0005] The technical solution of the present invention is:
[0006] The present invention provides a transparent meter reading management method, the method comprising the following steps:
[0007] The main station acquisition management system uses standard communication protocols to communicate with the gateway device through the LTE module or optical fiber Ethernet communication medium;
[0008] After receiving the data, the gateway device checks the validity of the data frame according to the standard communication protocol. If it meets the transparent transmission protocol defined by the standard communication protocol, it converts the transparent transmission protocol into the data link layer protocol when the transparent transmission task is idle, and sends it to the downstream sub-table through the RS485 bus;
[0009] The gateway device receives the sub-table reply, converts the data link layer protocol into a transparent transmission protocol, and replies to the main station through the LTE module or optical fiber Ethernet communication medium, completing the information exchange between the main station and the sub-table.
[0010] Furthermore, the communication protocol between the master station and the gateway device is the standard communication protocol COSEM / DLMS, and the transparent transmission protocol is the transparent transmission protocol Gateway protocol defined by COSEM / DLMS.
[0011] Furthermore, the gateway device is responsible for protocol conversion and information transmission during the entire transparent meter reading process, providing channels and protocol conversion for the main station and sub-meters.
[0012] Furthermore, when the transparent transmission task is idle, the transparent transmission protocol is converted into the data link layer protocol as follows:
[0013] The gateway device determines whether the transparent transmission task is idle;
[0014] If the transparent transmission task state is idle, it enters the transparent transmission task state, the gateway device receives the transparent transmission command from the master station, and performs protocol conversion between the transparent transmission protocol and the data link layer protocol;
[0015] Otherwise, the transparent transmission task status is task execution, that is, the gateway device directly discards the transparent transmission command of the master station during the processing of a transparent transmission command.
[0016] Furthermore, after the gateway device receives the sub-table reply or the reception times out, it uses the transparent transmission protocol to reply the transparent transmission result of the main station, and the transparent transmission task execution state is updated to idle, ready to receive new transparent transmission tasks.
[0017] Further, the master station provides the RS485 data link layer protocol low-order address information of the sub-table;
[0018] The gateway device performs protocol conversion between the master station and the sub-table into protocol conversion between the transparent transmission protocol and the data link layer protocol. When the gateway device communicates with the sub-table, it addresses through the low-order address information.
[0019] Further, the gateway device adaptively divides the link layer into frames according to the size of the data received at the link layer of the sub-table;
[0020] When the data received by the sub-table link layer is smaller than the data content that needs to be transparently transmitted, the transparently transmitted data content is divided into multiple frame data and sent to the sub-table;
[0021] When the network management device receives the framed data from the sub-table, it performs buffering processing until the sub-table framing is completed, and then forwards the buffered data frame to the main station.
[0022] Beneficial effects of the present invention:
[0023] In the transparent meter reading process of the present invention, the gateway device Gateway is responsible for protocol conversion and information transmission, providing channels and protocol conversion for the main station HES and the sub-meter sub-meter, and does not parse the specific transmitted information part; when the transmitted information is encrypted, the encryption algorithm and other security information are completely a black box to the gateway device Gateway, ensuring the confidentiality of the information transmitted between the main station HES and the sub-meter sub-meter.
[0024] In the present invention, the gateway device Gateway does not need to manage and maintain the archive information of the sub-meter, including the address, the password required for communication security, the key information, etc. There is no need to save any information of the exchange process between the master station HES and the sub-meter, and there is no need to equip the sub-meter with a non-volatile memory EEPROM or Flash. The gateway device realizes adaptive protocol management and improves the efficiency of data collection.
[0025] In the present invention, the master station HES does not need to manage the RS485 bus data link layer protocol during the data exchange with the sub-meter, and focuses on the business process of its own application layer. When the sub-meter starts to communicate, the application layer connection The COSEM-OPEN service is established, and when the communication with the sub-meter ends, the application layer connection The COSEM-RELEASE service is disconnected to ensure the safety closed loop of the application layer communication. On this basis, the sub-meter can be switched as needed to achieve communication with different sub-meters. The gateway device Gateway is responsible for managing the link layer HDLC communication protocol of the sub-meter RS485 bus, maintaining the connection establishment and disconnection of the link layer, and realizing the SNRM frame, I, RR frame, DISC frame and segmentation communication service involved in the HDLC link layer, ensuring the integrity and correctness of the direct information interaction between the master station HES and the sub-meter.
[0026] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.
[0028] Figure 1 The architecture diagram of the gateway device automatic meter reading system is shown.
[0029] Figure 2 Shows the timing diagram of the master station reading data with HDLC link layer management DETAILED DESCRIPTION
[0030] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0031] The present invention provides a transparent meter reading management method, wherein a gateway device Gateway and a sub-meter are installed on-site and parameter configuration is performed, and after the wiring is completed, the connectivity is tested, and after the test is passed, a device list of the gateway device and the sub-meter is generated and provided to the power system end HES, and the gateway device and the sub-meter file management is performed. The specific steps include:
[0032] S1. The main station collection management system uses standard communication protocols to communicate with the gateway device through the LTE module or optical fiber Ethernet communication medium;
[0033] S2. After receiving the data, the gateway device Gateway checks the validity of the data according to the standard communication protocol COSEM / DLMS. If it conforms to the transparent transmission protocol Gateway protocol defined by COSEM / DLMS, it converts the transparent transmission protocol into a data link layer protocol according to the Gateway transparent transmission management method and sends it to the downstream sub-table through the RS485 bus.
[0034] According to the two states of transparent transmission task execution, namely idle and task execution, there are two processing situations:
[0035] The first type is when the transparent transmission task execution status is idle, the transparent transmission data is received, the transparent transmission task is executed, the transparent transmission task execution status table is counted as task execution, and the protocol conversion is performed, and the Gateway protocol is converted to HDLC. It is sent to the sub-meter via the standard RS485 bus, and the RS485 receiving timeout counter is started. This parameter can be set according to the COSEM interface class class 23, attribute 8, inactivity_time_out. The default time is 6 seconds and can be adjusted according to actual conditions. Within the RS485 receiving timeout, after the gateway device Gateway receives the complete reply from the sub-meter, the gateway device Gateway performs protocol conversion, converts HDLC to Gateway protocol, and replies to the master station HES through the LTE module or optical fiber Ethernet communication medium, and counts the transparent transmission task execution status table as idle. After the RS485 receiving timeout period is reached, no response is received from the sub-meter, and the execution status table of the transparent transmission task is counted as idle. At the same time, in the Gateway protocol format, the custom error code 0x80 transparent transmission RS485 sub-meter reply timeout - reply to the master station HES meter reply timeout is generated.
[0036] The second is when the transparent transmission task execution status is in task execution, that is, when the gateway device Gateway is processing a transparent transmission command, it no longer processes new transparent transmission commands and directly discards the transparent transmission command of the master station HES.
[0037] S3. The gateway device receives the reply from the sub-table, converts the data link layer protocol into a transparent transmission protocol, and replies to the main station through the LTE module or the optical fiber Ethernet communication medium, completing the information exchange between the main station and the sub-table.
[0038] In one example, the on-site installation and parameter configuration are as follows: After the gateway device is installed on-site, the address information, IP and port number of the master station are configured. The gateway device checks on-site whether the LTE network communication indicator indicates that the master station HES is normally connected. Then the RS485 bus is deployed, and the sub-meters are correctly connected according to the A and B polarities of the RS485. A maximum of 128 sub-meters can be connected. After the wiring is completed, an equipment list of the gateway device and the sub-meter is generated and provided to the HES at the power system end. The HES enters the equipment list into the archive system to manage the archives of the gateway device and the sub-meter;
[0039] (1) The Address length L carried in the Gateway protocol data frame sent by the master station HES is a 1-byte or 2-byte sub-meter address HDLC lower address, which is used for sub-table addressing of the RS485 bus. The services carried by the Application layer payload (COSEM APDU) are The COSEM-OPEN service, TheCOSEM-RELEASE service, The GET service, The SET service, The ACTION service, TheACCESS service, and the corresponding data frames are: AARQ, RLRQ, I frame, I frame, I frame, I frame. The Address length and Physical device address carried in the Gateway protocol data frame replied by the gateway device Gateway to the master station HES are consistent with the address sent by the master station HES, and the service carried by the Application layer payload (COSEM APDU) corresponds one-to-one with the reply sent by the master station HES.
[0040] Table 1: Data frame types between the master station HES and the Sub-meter.
[0041]
[0042] Table 2: Data frame types between Gateway and Sub-meter
[0043]
[0044] (2) The gateway device Gateway only saves the HDLC related information of the sub-meter of the current master station HES communication, and the Physical device address information of the sub-meter sent by the master station HES. When the master station HES sends a new sub-meter transparent transmission task, that is, the Physical device address of the sub-meter of the transparent transmission task is updated, the HDLC related information of the old sub-meter is cleared.
[0045] (3) Figure 2 The timing diagram of reading data for the master station with HDLC link layer management. The master station HES sends the Gatewayprotocol transparent transmission data frame. When the transparent transmission task is received normally, the gateway device Gateway processes the HDLC as follows:
[0046] If the sub-meter is a new sub-meter, the HDLC information is cleared. Regardless of the service carried by the Application layer payload (COSEM APDU) in the Gateway protocol sent by the master station HES, the data frame SNRM (Set Normal Response mode) command of the HDLC protocol will be sent to the sub-meter. The SNRM command is used to achieve two functions. One function is to negotiate the link layer data receiving size, inform the gateway device Gateway of the data size that can be received and check the data size that the sub-meter can accept. According to the capability of the Gateway device Gateway processor, the link layer can receive data size of 1224 bytes. The second function is to clear the frame counter of the sub-meter HDLC to achieve zeroing of the link layer frame counter. After the gateway device Gateway sends SNRM and waits for the sub-meter to reply, when the sub-meter responds normally, the data size that the sub-meter link layer can receive is obtained.
[0047] (4) The gateway device Gateway adapts the link layer segmentation function according to the size of the data received by the sub-meter link layer. When the data received by the sub-meter link layer is smaller than the data content to be transparently transmitted, the link layer segmentation function is turned on to divide the transparent data content into multiple segmentation data frames and send them to the sub-meter. When the Gateway receives the framed data from the sub-meter, it must cache it until the sub-meter framing is completed, and then forward the cached data frame to the HES; specifically:
[0048] (41) When the data received by the link layer of the sub-meter is smaller than the data content to be transmitted, the gateway device Gateway turns on the link layer segmentation function. The gateway device Gateway divides the transparent data content into multiple segmentation data frames and sends them to the sub-meter one by one. After receiving the data, the sub-meter first caches the data and then responds to the RR to request subsequent data frames until the framing is completed. After the sub-meter receives the complete data frame, it splices the data frame and then replies with the I frame data frame.
[0049] (42) When the sub-meter replies to enable packet transmission, the gateway device Gateway needs to enable the packet reception service and use I frames and RR frames. When the HDLC data is received completely, it performs frame splicing, splices the COSEMAPDU parts of multiple HDLC data frames together, and then performs protocol conversion from HDLC to Gateway Protocol and replies to the master station HES system.
[0050] The gateway device Gateway maintains the security of the HDLC link. When the master station HES sends The COSEM-RELEASEservice to release the sub-table application layer connection, the gateway device Gateway will release the HDLC link layer connection, send a DISC data frame to the sub-table, disconnect the link layer connection, and ensure the normal release of the HDLC link.
[0051] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.
Claims
1. A transparent meter reading management method, characterized in that: The method comprises the following steps: The main station acquisition management system uses standard communication protocols to communicate with the gateway device through the LTE module or optical fiber Ethernet communication medium; After receiving the data, the gateway device checks the validity of the data frame according to the standard communication protocol. If it does not meet the requirements, the data will be discarded directly. If it meets the transparent transmission protocol defined by the standard communication protocol, the transparent transmission protocol will be converted into a data link layer protocol when the transparent transmission task is idle, and sent to the downstream sub-table through the RS485 bus. The gateway device receives the sub-table reply, converts the data link layer protocol into a transparent transmission protocol, and replies to the main station through the LTE module or optical fiber Ethernet communication medium, completing the information exchange between the main station and the sub-table.
2. The transparent meter reading management method according to claim 1 is characterized in that: The communication protocol between the master station and the gateway device is the standard communication protocol COSEM / DLMS, and the transparent transmission protocol is the transparent transmission protocol Gatewayprotocol defined by COSEM / DLMS.
3. The transparent meter reading management method according to claim 1, characterized in that: The gateway device is responsible for protocol conversion and information transmission during the entire transparent meter reading process, providing channels and protocol conversion for the main station and sub-meters.
4. A transparent meter reading management method according to claim 1, characterized in that: The specific steps of converting the transparent transmission protocol into the data link layer protocol when the transparent transmission task is idle are as follows: The gateway device determines whether the transparent transmission task is idle; If the transparent transmission task state is idle, it enters the transparent transmission task state, the gateway device receives the transparent transmission command from the master station, and performs protocol conversion between the transparent transmission protocol and the data link layer protocol; Otherwise, the transparent transmission task status is task execution, that is, the gateway device directly discards the transparent transmission command of the master station during the processing of a transparent transmission command.
5. A transparent meter reading management method according to claim 1, characterized in that: After the gateway device receives the sub-table reply or the reception times out, it uses the transparent transmission protocol to reply to the master station's transparent transmission result. The transparent transmission task execution status is updated to idle, ready to receive new transparent transmission tasks.
6. A transparent meter reading management method according to claim 1, characterized in that: The master station provides the RS485 data link layer protocol low-order address information of the sub-table; The gateway device performs protocol conversion between the master station and the sub-table into protocol conversion between the transparent transmission protocol and the data link layer protocol. When the gateway device communicates with the sub-table, it addresses through the low-order address information.
7. A transparent meter reading management method according to claim 1, characterized in that: The gateway device adaptively divides the link layer into frames according to the size of the data received at the sub-table link layer; When the data received by the sub-table link layer is smaller than the data content that needs to be transparently transmitted, the transparently transmitted data content is divided into multiple frame data and sent to the sub-table; When the network management device receives the framed data from the sub-table, it performs buffering processing until the sub-table framing is completed, and then forwards the buffered data frame to the main station.