Gateway configuration method, apparatus, device, and medium

CN122437763BActive Publication Date: 2026-08-28SHENZHEN STAR INSTR
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610908839.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-06-23
Publication Date
2026-08-28
Estimated Expiration
2046-06-23

AI Technical Summary

Technical Problem

[0004]本发明实施例提供一种网关配置方法、装置、设备及介质,以解决相关技术中无法识别用户接口单元工作模式,以及无法实现通信参数自动配置的技术问题

Benefits of technology

[0013]综上,本公开的网关配置方法、装置、设备及介质,该方法包括:向下游终端交替发送基于电力通信协议的设备识别请求帧,设备识别请求帧为645协议的读表号请求帧和DLMS协议的建链请求帧;基于下游终端返回的首个有效响应帧的帧头特征,确定下游终端对应的目标电力通信协议,有效响应帧由下游终端响应于设备识别请求帧生成;基于目标电力通信协议,提取首个有效响应帧的主特征字段,主特征字段为用于指示下游终端的设备类型和运行模式中至少一项的预定义字段;当主特征字段指示下游终端的设备类型为电能表,或主特征字段指示下游终端的设备运行模式为用户接口单元中转模式时,将设备类型或设备运行模式确定为下游终端的候选识别结果,并计算候选识别结果的置信度;当主特征字段指示下游终端的设备类型为用户接口单元时,提取首个有效响应帧的数据区表号内容,对数据区表号内容进行语义校验,得到语义校验结果,基于语义校验结果,确定候选识别结果,并计算候选识别结果的置信度;当主特征字段指示下游终端的设备运行模式为用户接口单元直连模式时,获取下游终端对应的电表序列号,对电表序列号进行格式校验,得到格式校验结果,并基于格式校验结果,确定候选识别结果,并计算候选识别结果的置信度;基于置信度,确定下游终端的目标识别结果,并基于目标识别结果,配置数据采集网关。本方法通过多维度特征判断,结合置信度评估,完成对下游终端的识别,能够准确区分下游终端的设备类型与运行模式,并依托识别结果直接完成网关参数配置,提高了下游终端的识别准确度和数据采集网关的配置效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122437763B_ABST
    Figure CN122437763B_ABST
Patent Text Reader

Abstract

The application discloses a gateway configuration method, device, equipment and medium. The method alternately sends a 645 protocol reading meter number request frame and a DLMS protocol link establishment request frame to a downstream terminal, determines a target communication protocol based on a frame header feature of a first effective response frame, extracts a corresponding main feature field to generate a candidate identification result, and can distinguish between two operation modes of a direct connection mode and a transfer mode of a user interface unit of an electric energy meter. For a result indicated by the main feature field of the user interface unit, secondary verification is performed by checking a meter number semantic of a response frame data area. For a result indicated by the direct connection mode, secondary verification is performed by checking an electric meter serial number format. Combined with confidence degree calculation and a limited retry mechanism, automatic correction of feature conflicts is realized, and the anti-interference capability is improved. Meanwhile, relying on a preset configuration parameter mapping relationship table, an identification result is directly converted into a gateway communication configuration, and the deployment efficiency and operation continuity of a power data acquisition system are improved.
Need to check novelty before this filing date? Find Prior Art

Claims

1. A gateway configuration method, applied to a data acquisition gateway, characterized in that, include: The device identification request frame based on the power communication protocol is alternately sent to the downstream terminal. The device identification request frame is a meter reading request frame of the 645 protocol and a link establishment request frame of the DLMS protocol. Based on the frame header features of the first valid response frame returned by the downstream terminal, the target power communication protocol corresponding to the downstream terminal is determined. The valid response frame is generated by the downstream terminal in response to the device identification request frame. Based on the target power communication protocol, the main feature field of the first valid response frame is extracted. The main feature field is a predefined field used to indicate at least one of the device type and operating mode of the downstream terminal. When the main feature field indicates that the device type of the downstream terminal is an electricity meter, or when the main feature field indicates that the device operation mode of the downstream terminal is a user interface unit relay mode, the device type or the device operation mode is determined as a candidate identification result of the downstream terminal, and the confidence level of the candidate identification result is calculated. When the main feature field indicates that the device type of the downstream terminal is a user interface unit, the data area table number content of the first valid response frame is extracted, the data area table number content is semantically verified to obtain the semantic verification result, and based on the semantic verification result, the candidate recognition result is determined and the confidence level of the candidate recognition result is calculated. When the main feature field indicates that the device operation mode of the downstream terminal is the user interface unit direct connection mode, the meter serial number corresponding to the downstream terminal is obtained, the format of the meter serial number is checked to obtain the format check result, and based on the format check result, the candidate identification result is determined and the confidence level of the candidate identification result is calculated. Based on the confidence level, the target identification result of the downstream terminal is determined, and based on the target identification result, the data acquisition gateway is configured.

2. The method according to claim 1, characterized in that, The step of extracting the main feature field of the first valid response frame based on the target power communication protocol includes: When the target power communication protocol is the 645 protocol, the address field in the first valid response frame is extracted, and the address field is determined as the main feature field; When the target power communication protocol is the DLMS protocol, the encapsulation source port number and encapsulation destination port number are extracted from the first valid response frame, and the encapsulation source port number and the encapsulation destination port number are determined as the main feature field.

3. The method according to claim 1, characterized in that, The step of performing semantic verification on the content of the data area table number to obtain a semantic verification result, and determining the candidate recognition result based on the semantic verification result, includes: Verify whether the table number content in the data area conforms to the preset table number encoding rules; If the content of the data area table number conforms to the encoding rules, then the semantic verification result is determined to be a feature conflict; If the content of the data area table number does not conform to the encoding rules, then the semantic verification result is determined to be feature-free. If the semantic verification result is a feature conflict, then the candidate identification result is determined to be an electricity meter type; If the semantic verification result shows no feature conflict, then the candidate recognition result is determined to be a user interface unit type.

4. The method according to claim 1, characterized in that, Obtaining the meter serial number corresponding to the downstream terminal includes: Based on the connection establishment request frame of the DLMS protocol, a communication session is established with the downstream terminal; In the communication session, a meter data reading request is sent to the downstream terminal, and the meter data response information returned by the downstream terminal is received. The meter's data response information is parsed to obtain the meter's serial number.

5. The method according to claim 1, characterized in that, The step of performing format verification on the meter serial number, obtaining a format verification result, and determining the candidate identification result based on the format verification result includes: If the meter serial number conforms to the preset serial number encoding rules, then the format verification result is determined to be valid. If the meter serial number does not conform to the preset serial number encoding rules, then the format verification result is determined to be invalid. If the format verification result is that the mode is valid, then the candidate recognition result is determined to be the user interface unit direct connection mode. If the format verification result is invalid, then the candidate identification result is determined to be an electricity meter type.

6. The method according to claim 1, characterized in that, The step of determining the target identification result of the downstream terminal based on the confidence level includes: When the confidence level is greater than or equal to a preset confidence threshold, the candidate recognition result is determined as the target recognition result; When the confidence level is less than the preset confidence threshold, the device identification request frame is resent alternately to the downstream terminal to redetermine the candidate identification result and the corresponding confidence level, and the number of retries is counted. When the redefined confidence level is greater than or equal to the preset confidence threshold, and the number of retries has not reached the preset retry upper limit threshold, the corresponding candidate recognition result is determined as the target recognition result. When the re-determined confidence level is less than the preset confidence threshold and the number of retries reaches the preset retry upper limit threshold, the target identification result is determined to be an electricity meter type, and an identification anomaly alarm is reported.

7. The method according to claim 1, characterized in that, The step of configuring the data acquisition gateway based on the target recognition result includes: Based on a preset configuration parameter mapping table, the communication configuration parameters corresponding to the target recognition result are determined; Configure the data acquisition gateway based on the communication configuration parameters.

8. A gateway configuration device, applied to a data acquisition gateway, characterized in that, include: The request sending module is used to alternately send device identification request frames based on the power communication protocol to downstream terminals. The device identification request frames are the 645 protocol read meter number request frame and the DLMS protocol link establishment request frame. The protocol determination module is used to determine the target power communication protocol corresponding to the downstream terminal based on the frame header features of the first valid response frame returned by the downstream terminal. The valid response frame is generated by the downstream terminal in response to the device identification request frame. The feature extraction module is used to extract the main feature field of the first valid response frame based on the target power communication protocol. The main feature field is a predefined field used to indicate at least one of the device type and operating mode of the downstream terminal. The first identification module is used to determine the device type or the device operating mode as a candidate identification result of the downstream terminal when the main feature field indicates that the device type of the downstream terminal is an electricity meter, or when the main feature field indicates that the device operating mode of the downstream terminal is a user interface unit relay mode, and to calculate the confidence level of the candidate identification result. The second identification module is used to extract the data area table number content of the first valid response frame when the main feature field indicates that the device type of the downstream terminal is a user interface unit, perform semantic verification on the data area table number content, obtain the semantic verification result, determine the candidate identification result based on the semantic verification result, and calculate the confidence level of the candidate identification result. The third identification module is used to obtain the meter serial number corresponding to the downstream terminal when the main feature field indicates that the device operation mode of the downstream terminal is the user interface unit direct connection mode, perform format verification on the meter serial number, obtain the format verification result, determine the candidate identification result based on the format verification result, and calculate the confidence level of the candidate identification result. The gateway configuration module is used to determine the target identification result of the downstream terminal based on the confidence level, and to configure the data acquisition gateway based on the target identification result.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the gateway configuration method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the gateway configuration method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Protocol adaptive method and device for household photovoltaic data access

    CN120751026A

  • Management method, device and equipment for external Flash storage of electric energy meter and medium

    CN121680724A