Power system equipment communication setting method and device, electronic equipment and storage medium

By automatically obtaining and configuring the IP address and network parameters of power system equipment, the problems of high time cost and high error rate caused by manual configuration in the prior art are solved, and rapid and automated equipment network deployment is achieved.

CN119652746APending Publication Date: 2025-03-18GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411812362.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the prior art, the network parameter configuration of power system equipment needs to be manually performed, resulting in high deployment time cost, easy to introduce configuration errors, and is not suitable for rapid or temporary network deployment.

Method used

Provide a power system equipment communication setting method, by obtaining the IP address of other devices after powering on the target device, automatically configure the IP address, detecting and defaulting the missing network parameters, and performing configuration verification of the superior device to ensure the correctness of the network connection.

Benefits of technology

It realizes automated device configuration, reduces deployment time costs, avoids configuration errors, is suitable for fast and temporary network deployment, and does not require personnel with network knowledge to configure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652746A_ABST
    Figure CN119652746A_ABST
Patent Text Reader

Abstract

The invention discloses a power system equipment communication setting method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining the IP addresses of other equipment in a network after target equipment is powered on, so as to enable the target equipment to communicate with other equipment; performing IP address configuration on the target equipment, wherein the IP address configuration mode comprises the steps of automatically allocating an IP address by the DHCP server and automatically generating the IP address by the target equipment; detecting missing network parameters of the target equipment and configuring the missing network parameters by adopting default configuration parameters; each device can be automatically configured, so that the deployment time cost is reduced; and after the configuration is completed, configuration verification is performed with the superior equipment of the target equipment, so that the correctness of network connection is ensured, and communication failure caused by configuration errors is avoided. The whole process is automatic, the method is suitable for rapid and temporary network deployment, personnel with network knowledge are not needed for configuration, automatic configuration is truly achieved, equipment can be used instantly, human intervention is reduced, and the method is suitable for a large-scale application environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system communication, and in particular to a method, device, electronic device and storage medium for setting communication of power system equipment. Background Art

[0002] With the development of information technology in the power system, more and more devices are transmitting data through the network to collect and analyze the status information of different devices in a timely and rapid manner. However, before collecting the device's message, it is usually necessary to configure the device's network parameters (such as IP address, gateway, subnet mask, etc.).

[0003] In the prior art, network parameter configuration of devices is usually performed manually, but this method has the following problems:

[0004] 1. Each device needs to be configured one by one, which increases the time cost of deployment;

[0005] 2. Manual configuration is prone to errors, resulting in communication failures and may even require reconfiguration;

[0006] 3. It requires personnel with network knowledge to configure and is not suitable for fast, temporary network deployment. Summary of the invention

[0007] In order to solve the above technical problems, the present invention provides a method for setting communication of power system equipment.

[0008] In a first aspect, the present invention provides a method for setting communication of power system equipment, wherein the equipment in the power system is in the same network environment, and the method is applied to a target equipment, comprising:

[0009] After the target device is powered on, the IP addresses of other devices in the network are obtained so that the target device can communicate with other devices;

[0010] Performing IP address configuration on the target device, wherein the IP address configuration method includes automatic allocation of IP address by a DHCP server and automatic generation of IP address by the target device;

[0011] Detecting missing network parameters of the target device and configuring it using default configuration parameters;

[0012] After the configuration is completed, the configuration is verified with the upper-level device of the target device to ensure the correctness of the network connection.

[0013] In a second aspect, the present invention provides a power system equipment communication setting device, which is arranged in a target device, comprising:

[0014] The devices in the power system are in the same network environment, and the method is applied to a target device, wherein the target device includes:

[0015] A peripheral IP address acquisition module is used to acquire the IP addresses of other devices in the network after the target device is powered on, so that the target device can communicate with other devices;

[0016] The self-IP address configuration module is used to configure the IP address of the target device, and the IP address configuration method includes automatic allocation of the IP address by a DHCP server and automatic generation of the IP address by the target device;

[0017] A missing parameter configuration module, used to detect the missing network parameters of the target device and configure it using default configuration parameters;

[0018] The configuration verification module is used to perform configuration verification with the upper-level device of the target device after the configuration is completed to ensure the correctness of the network connection.

[0019] In a third aspect, the present invention provides an electronic device, the electronic device comprising:

[0020] at least one processor; and

[0021] a memory communicatively connected to the at least one processor; wherein,

[0022] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power system device communication setting method described in the first aspect of the present invention.

[0023] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a processor to implement the power system equipment communication setting method described in the first aspect of the present invention when executed.

[0024] The power system equipment communication setting method provided by the embodiment of the present invention, the equipment in the power system is in the same network environment, and the method is applied to the target device, including: after the target device is powered on, obtaining the IP addresses of other devices in the network so that the target device and other devices can communicate with each other; configuring the IP address of the target device, the IP address configuration method includes the DHCP server automatically assigning the IP address and the target device automatically generating the IP address; detecting the missing network parameters of the target device and configuring it with the default configuration parameters; each device can be automatically configured, reducing the time cost of deployment; after the configuration is completed, the configuration is verified with the upper device of the target device to ensure the correctness of the network connection and avoid communication failure due to configuration errors. The whole process is automated, suitable for fast and temporary network deployment, and does not require personnel with network knowledge to configure, truly realizing automated configuration, the equipment can be used immediately, reducing human intervention, and suitable for large-scale application environments.

[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 is a flow chart of a method for setting communication of power system equipment provided by Embodiment 1 of the present invention;

[0028] Figure 2 It is a structural diagram of a communication setting device for power system equipment provided by Embodiment 2 of the present invention;

[0029] Figure 3 It is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0031] Embodiment 1

[0032] Figure 1 The flowchart of a method for setting communication of power system equipment provided in the first embodiment of the present invention is applicable to the case of setting communication of equipment connected to the power system. The method can be executed by a power system equipment communication setting device in the target device. The power system equipment communication setting device can be implemented in the form of hardware and / or software. The power system equipment communication setting device can be configured in an electronic device. The equipment in the power system is in the same network environment. The method is applied to the target device. The target device can be any equipment in the power system, such as Figure 1 As shown, the power system equipment communication setting method includes:

[0033] S101. After the target device is powered on, the IP addresses of other devices in the network are obtained so that the target device can communicate with the other devices.

[0034] The IP addresses of other devices can be obtained through communication or hardware.

[0035] When obtaining by communication, obtain the IP addresses of other devices on the network, including:

[0036] Monitor broadcast or multicast messages sent by other devices;

[0037] Obtain the IP addresses of other devices from broadcast or multicast messages.

[0038] When obtained in hardware, the power system includes a multi-interface switch, for example, the switch has 24 interfaces, and the devices in the power system are all connected to the interfaces of the switch. The switch can obtain the IP address of each device and share it with other devices. In this way, all devices connected to the switch can obtain the IP addresses of other devices.

[0039] Broadcasting refers to sending data packets to all devices in the local area network, while multicasting refers to sending data packets to devices in a specific multicast group. It should be noted that broadcasting and multicasting communication methods do not depend on network configuration, and they can both be performed without network configuration.

[0040] Exemplarily, the method of monitoring broadcast or multicast may include:

[0041] 1. Set the network card mode to promiscuous mode, so that the network card will receive all data packets passing through it, not just the data packets sent to it. In this mode, all broadcast and multicast data in the LAN can be monitored.

[0042] 2. Use specific software tools, such as the Wireshark network analysis tool, which can set the network card to promiscuous mode and capture all data packets within the LAN.

[0043] By monitoring broadcast and multicast, the target device can automatically discover and connect to the network. In the distributed equipment deployment scenario of the power grid, such as the installation of inverters and smart meters in distributed photovoltaic power stations, this unit can enable the device to quickly and automatically access the power grid communication network.

[0044] S102: Perform IP address configuration on the target device. The IP address configuration method includes automatic allocation of IP address by a DHCP server and automatic generation of IP address by the target device.

[0045] The DHCP (Dynamic Host Configuration Protocol) server is one of the devices in the power system. When the DHCP server is turned on, it detects in real time whether other devices in the same network environment already have IP addresses. If not, it allocates an IP address to the device.

[0046] DHCP is a defined standard protocol that allows a DHCP server to dynamically assign IP addresses and configuration information to target devices. All IP network setting information is centrally managed by the DHCP server, which processes the client's DHCP request and assigns IP information to the device, including IP address, DNS, etc. Specifically, DHCP uses UDP as the transmission protocol. The target device sends a message to port 67 of the DHCP server, and the DHCP server returns a message to port 68 of the client.

[0047] In an optional embodiment, configuring an IP address for a target device includes: determining whether a DHCP server allocates an IP address to the target device within a preset time period; if so, determining that the IP address configuration of the target device is successful; if not, automatically generating an IP address of a local IP segment to obtain an alternative IP address;

[0048] Determine whether the candidate IP address conflicts with the IP address of other devices; if not, determine that the IP address configuration of the target device is successful; if so, return to the step of automatically generating the IP address of the local IP segment to obtain the candidate IP address.

[0049] When the DHCP server is not turned on, the DHCP server fails to assign an IP address to the target device within a preset time period. At this time, the target device needs to start the built-in IP configuration strategy to automatically generate an IP address of the local IP segment to obtain an alternative IP address. When judging whether the alternative IP address conflicts with the IP address of other devices, there are two specific methods. One method is to match the alternative IP address with the IP address of other devices that have been obtained. If the other device has configured the alternative IP address, a new alternative IP address needs to be regenerated. If the other device has not configured the alternative IP address, the alternative IP address can be used as the IP address of the target device. Another method is to send the heartbeat packet to the alternative IP address in a broadcast form based on the generation of the heartbeat packet. If a connection is successfully established with other devices, it indicates that the other device uses the alternative IP address. If no connection is established, it means that no other device uses the alternative IP address, and the alternative IP address can be used as the IP address of the target device. By performing IP address verification, conflicts with the addresses of other devices can be avoided.

[0050] When the dynamic IP is not available, the target device automatically generates a local IP address and avoids conflicts. For some power equipment that is temporarily connected to the power grid or connected during emergency repairs, this function can ensure that it can quickly obtain available network parameters and achieve communication connection.

[0051] S103: Detect missing network parameters of the target device and configure it using default configuration parameters.

[0052] Detect the missing network parameters of the target device and configure them with the default configuration parameters. For example, if the gateway parameters are missing, the gateway parameters are automatically configured. The target device is also equipped with a display, which provides the user with basic configuration options (such as setting the network type, protocol, etc.) through a web interface automatically generated in the display, and automatically detects the required basic network configuration items to reduce the configuration workload. In addition, the user can also modify the network parameters in the web interface.

[0053] S104: After the configuration is completed, perform configuration verification with the upper-level device of the target device to ensure the correctness of the network connection.

[0054] The devices in the power system have superior-subordinate and peer relationships. The superior device usually needs to monitor or manage the subordinate device, so it needs to obtain the data of the subordinate device, and the peer devices may also need to exchange data, such as using the data of other devices to assist operation. Therefore, communication is required between superior-subordinate and peer devices. Since the superior device of the target device is usually fixed and the number is small (usually only 1), and the target device's level or subordinate devices are not fixed and the number is large, only the superior device of the target device is used for configuration verification in this step.

[0055] Specifically, the configuration verification process is as follows: the target device sends a data packet to the superior device through the configured network parameters and detects whether a response from the superior device is received within a preset delay time. If a response is received, it means that the configuration is successful and the network connection is correct. Otherwise, the configuration is unsuccessful and the network connection is wrong.

[0056] The power system equipment communication setting method provided by the embodiment of the present invention, the equipment in the power system is in the same network environment, and the method is applied to the target device, including: after the target device is powered on, obtaining the IP addresses of other devices in the network so that the target device and other devices can communicate with each other; configuring the IP address of the target device, the IP address configuration method includes the DHCP server automatically assigning the IP address and the target device automatically generating the IP address; detecting the missing network parameters of the target device and configuring it with the default configuration parameters; each device can be automatically configured, reducing the time cost of deployment; after the configuration is completed, the configuration is verified with the upper device of the target device to ensure the correctness of the network connection and avoid communication failure due to configuration errors. The whole process is automated, suitable for fast and temporary network deployment, and does not require personnel with network knowledge to configure, truly realizing automated configuration, the equipment can be used immediately, reducing human intervention, and suitable for large-scale application environments.

[0057] In an optional embodiment of the present invention, the target device includes an intelligent message sensing module. After the target device is powered on, the intelligent message sensing module automatically scans the network traffic, identifies common protocols and message types (such as TCP, UDP, HTTP, etc.), and automatically generates filtering rules. In the network environment of the power grid system, this module can be applied to the acquisition of communication messages between various types of power equipment (such as relay protection devices and measurement and control devices in substations). Exemplarily, the target device is a measurement and control device. When the relay protection device sends a protection action signal (usually a message based on a specific protocol) to the measurement and control device, the intelligent message sensing module in the measurement and control device can quickly identify and generate corresponding filtering rules to ensure that messages related to such protection action signals can be efficiently captured.

[0058] In one example of the present invention, the power system equipment communication setting method also includes: when the target device scans the network data sent by other devices, identifying the message type of the communication message contained in the network data; for each message type, obtaining the proportion of information volume of the communication message of the message type in the network data; receiving the communication message corresponding to the message type in the network data whose information volume proportion is greater than a preset proportion.

[0059] For a device, the network data it sends is diverse, but the main data sent are signals related to the device's own functions. The information volume of signals related to the device's own functions accounts for a large proportion. Therefore, in this example, a preset ratio is set to filter the messages in the network data to ensure that only core and important messages (such as control instructions, alarm information, etc.) are obtained, reducing the transmission of unnecessary message data and reducing resource usage. For the power grid, control instruction messages such as power adjustment instructions sent by the dispatching center to the power generation equipment, alarm information messages such as fault alarm signals issued when the power equipment fails, etc., through dynamic filtering rules, the system can accurately obtain these key messages and avoid interference from irrelevant data.

[0060] Optionally, the target device can also be adaptively adjusted according to the real-time load, that is, when the network traffic increases, the system will automatically adjust the capture frequency and filtering rules, give priority to key messages, and ensure the timeliness of message capture and analysis. During the peak power consumption period of the power grid, the network traffic increases dramatically. At this time, this function can ensure that important messages related to power grid stability control are captured and analyzed in time to maintain the stable operation of the power grid.

[0061] In an optional embodiment of the present invention, after receiving a communication message corresponding to a message type in which the information volume accounts for a greater proportion than a preset ratio in the network data, it also includes: storing the received communication message in a cache of the target device; and uploading the communication message in the cache to the upper-level system at a preset period.

[0062] After the message is captured, it is first stored in the device cache and periodically transmitted in batches to the upper system, reducing the network bandwidth usage and improving transmission efficiency. In the power grid, for example, the large number of communication messages generated by the widely distributed distribution automation terminal equipment can be cached first and then transmitted in batches to the upper system for centralized analysis, effectively reducing the usage of wired network bandwidth.

[0063] In an optional embodiment of the present invention, the target device includes an edge computing module, which can monitor the flow in real time and perform data preprocessing (such as protocol parsing, key field extraction, etc.) to reduce the amount of data transmitted. In the power grid environment, such as power monitoring terminal equipment, the collected power data (such as communication messages of voltage, current, power and other data) can be parsed in real time and key data extracted, and only the processed core data is transmitted to the upper system, which greatly reduces the network transmission burden. For the method of the present invention, in one example, the communication message in the cache is uploaded to the upper system at a preset period, including: performing protocol parsing on the communication message in the cache to obtain multiple data packets; extracting preset key fields from the data packet to obtain data to be uploaded; uploading the data to be uploaded to the upper system. Extract key data locally in the target device and perform preliminary analysis, only transmit the extracted core information, reduce the amount of data transmitted to the upper device, reduce the bandwidth pressure of data transmission and improve the processing speed. For example, in the power load monitoring equipment of the power grid, only the key data of the peak power load after local analysis is transmitted to the power dispatching department for power grid load balancing and control.

[0064] In an optional embodiment of the present invention, the target device also includes a multi-protocol identification module. After the target device is powered on, the multi-protocol identification module can automatically identify different protocol types (such as Modbus, IEC 104, SNMP, etc.) existing in the current network, and generate adaptation rules for each protocol. In the power grid, power equipment produced by different manufacturers may use different protocols. For example, some intelligent devices in the substation use the IEC 104 protocol, while some distribution network automation equipment may use the Modbus protocol. The multi-protocol identification module can accurately identify these protocol types and prepare for subsequent conversion. In the power grid, whether it is a power plant, a substation or different equipment in the distribution network, the module can identify its protocol type and promote communication between devices. For example, in a substation automation system, protection devices, measurement and control devices and other equipment from different manufacturers can be interconnected.

[0065] In an optional embodiment, the target device can also use the AI ​​model to learn historical message data, automatically generate filtering rules, and dynamically adjust the filtering rules according to the network status to improve the accuracy of data filtering. Taking power grid fault diagnosis as an example, by learning the communication message data during historical faults, the system can automatically generate filtering rules for fault-related messages. In real-time monitoring, it can more accurately filter out messages that may be related to the fault, thereby improving the efficiency of fault diagnosis. Automatically generate filtering rules based on historical data learning, and dynamically adjust according to the real-time network status. In the load forecasting application of the power grid, by learning the communication messages related to the historical load data, messages related to load changes can be more accurately filtered out, providing accurate data for load forecasting. When the power grid suffers external interference or sudden failures, resulting in a sharp increase in network traffic, the unit can ensure the acquisition of key messages, such as fault recording data messages, to provide a basis for fault analysis.

[0066] In an optional embodiment, the target device can also analyze the acquired messages in real time, quickly identify abnormal data or events through anomaly detection algorithms, and mark them as priority transmission data. For example, in the monitoring of power transmission lines, when abnormal current fluctuations occur in the lines, the relevant communication messages can be quickly identified and transmitted to the monitoring center as a priority so that timely measures can be taken. In the monitoring of the operating status of power grid equipment, such as transformer oil temperature monitoring equipment, when an abnormal increase in oil temperature is detected, the relevant communication messages can be quickly identified and transmitted to the monitoring center as a priority.

[0067] In an optional embodiment of the present invention, the target device includes a protocol conversion engine, and the power system equipment communication setting method also includes: when receiving a communication message sent by other devices, determining whether the target protocol format required by the target device is the same as the initial protocol format of the communication message; if not, converting the communication message from the initial protocol format to a preset standard protocol format through the protocol conversion engine; converting the communication message from the standard protocol format to the target protocol format through the protocol conversion engine.

[0068] The device has a built-in protocol conversion engine that converts messages in different protocol formats into standard protocol formats to ensure interoperability between different devices. For example, the instructions in the Modbus protocol format are converted into the standard protocol format and then converted into the IEC 104 protocol format as required to achieve seamless communication across protocols. In power grid communications, interconnection between devices at different levels can be achieved, such as data interaction between field devices and monitoring systems, even if they use different protocols. Of course, in some cases, the target device may also communicate with other devices in a standard protocol format, then the target protocol format is the standard protocol format. Automatically convert messages of different protocols into a standard format to ensure consistency in communication between devices.

[0069] In an optional example, the target device is a switch. The target device receives the communication message from device A. Device A uses the Modbus protocol format. The communication message needs to be forwarded to device B. Device B uses the IEC 104 protocol format. The target device converts the communication message of device A from the Modbus format to the standard protocol format, and then from the standard protocol format to the IEC104 protocol format, and then forwards it to device B. The target device automatically adapts the corresponding protocol format for different devices according to the identified protocol type to ensure that the message can be smoothly transmitted and parsed between different devices. For example, in the distributed energy access system of the power grid, this function can achieve message adaptation and sharing between distributed power supply equipment (such as photovoltaic inverters, wind turbine controllers, etc.) and the power grid dispatching system, ensuring the reliable access and dispatching control of distributed energy.

[0070] In an optional embodiment, the target device can obtain protocol library updates through plug-ins. As the power grid develops intelligently, new power equipment and technologies are constantly being integrated. This function can ensure that the power grid system can be timely compatible with new protocols adopted by new equipment. For example, when a new energy storage device is connected to the power grid, a new communication protocol may be adopted. The protocol library can be dynamically updated to enhance the device's support for new protocols and improve system flexibility.

[0071] In an optional embodiment, the upper-level device can store a large amount of communication message data of power equipment, such as data generated by long-term operation of substation equipment, transmission line monitoring equipment, etc., to provide a data basis for subsequent analysis. Specifically, the upper-level device can perform in-depth analysis and processing of the data, including troubleshooting, performance evaluation, etc. For example, after a power grid failure, the communication message data during the fault period can be deeply analyzed to locate the cause of the fault; during the regular performance evaluation of power grid equipment, the message data related to the equipment operation is analyzed to evaluate the equipment performance. The upper-level device provides data display, analysis reports and visualization interfaces, conducts in-depth analysis of the transmitted streamlined data, and provides the results to the user in an intuitive form, supporting applications such as troubleshooting and network status monitoring.

[0072] Embodiment 2

[0073] A second embodiment of the present invention provides a device for setting communication of power system equipment, the device is set in a target device in the power system, and the devices in the power system are in the same network environment. Figure 2 This is a schematic diagram of the structure of a target device provided in Embodiment 2 of the present invention. Figure 2 As shown, the power system equipment communication setting device includes:

[0074] The peripheral IP address acquisition module 201 is used to acquire the IP addresses of other devices in the network after the target device is powered on, so that the target device can communicate with other devices;

[0075] The self-IP address configuration module 202 is used to configure the IP address of the target device, and the IP address configuration method includes automatic allocation of the IP address by a DHCP server and automatic generation of the IP address by the target device;

[0076] A missing parameter configuration module 203, used to detect the missing network parameters of the target device and configure it using default configuration parameters;

[0077] The configuration verification module 204 is used to perform configuration verification with the upper-level device of the target device after the configuration is completed to ensure the correctness of the network connection.

[0078] Optionally, the peripheral IP address acquisition module 201 includes:

[0079] The message monitoring submodule is used to monitor broadcast messages or multicast messages sent by other devices;

[0080] The IP address acquisition submodule is used to acquire the IP addresses of other devices from the broadcast message or the multicast message.

[0081] Optionally, the self-IP address configuration module 202 includes:

[0082] The dynamic configuration judgment submodule is used to judge whether the DHCP server assigns an IP address to the target device within a preset time period; if so, the content of the configuration success determination submodule is executed; if not, the content of the alternative IP address generation submodule is executed;

[0083] A configuration success determination submodule is used to determine whether the IP address configuration of the target device is successful;

[0084] The alternative IP address generation submodule is used to automatically generate an IP address of the local IP segment to obtain an alternative IP address;

[0085] The IP address conflict judgment submodule is used to judge whether the candidate IP address conflicts with the IP address of other devices; if not, the content of the configuration success determination submodule is configured, and if so, the content of the candidate IP address generation submodule is executed.

[0086] Optionally, the target device also includes an intelligent message sensing and filtering module, which is used to: when scanning network data sent by other devices, identify the message type of the communication message contained in the network data; for each of the message types, obtain the proportion of information volume of the communication message of the message type in the network data; receive the communication message corresponding to the message type in the network data whose information volume proportion is greater than a preset proportion.

[0087] Optionally, the target device further includes:

[0088] A cache module, used for storing received communication messages in a cache of the target device;

[0089] The uploading module is used to upload the communication messages in the cache to the upper system at a preset period.

[0090] Optionally, the upload module includes:

[0091] The data packet acquisition submodule is used to perform protocol analysis on the communication messages in the cache to obtain multiple data packets;

[0092] A data pre-filtering submodule, used to extract preset key fields from the data packet to obtain data to be uploaded;

[0093] The upload module submodule is used to upload the data to be uploaded to the upper-level system.

[0094] Optionally, the target device includes a protocol conversion engine, which is used to determine whether the target protocol format required by the target device is the same as the initial protocol format of the communication message when receiving the communication message sent by other devices; if not, converting the communication message from the initial protocol format to a preset standard protocol format through the protocol conversion engine; and converting the communication message from the standard protocol format to the target protocol format through the protocol conversion engine.

[0095] The power system equipment communication setting device provided in the embodiment of the present invention can execute the power system equipment communication setting method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0096] Embodiment 3

[0097] Figure 3 A schematic diagram of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0098] like Figure 3As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0099] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0100] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 41 executes the various methods and processes described above, such as a power system device communication setting method.

[0101] In some embodiments, the power system device communication setting method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the power system device communication setting method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to execute the power system device communication setting method in any other appropriate manner (e.g., by means of firmware).

[0102] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0103] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0104] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0105] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0106] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0107] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0109] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for setting up communication of power system equipment, characterized in that: The devices in the power system are in the same network environment, and the method is applied to the target device, including: After the target device is powered on, the IP addresses of other devices in the network are obtained so that the target device can communicate with other devices; Performing IP address configuration on the target device, wherein the IP address configuration method includes automatic allocation of IP address by a DHCP server and automatic generation of IP address by the target device; Detecting missing network parameters of the target device and configuring it using default configuration parameters; After the configuration is completed, the configuration is verified with the upper-level device of the target device to ensure the correctness of the network connection.

2. The method for setting up communication of power system equipment according to claim 1, characterized in that: The obtaining of IP addresses of other devices in the network includes: Monitor broadcast or multicast messages sent by other devices; Acquire the IP addresses of other devices from the broadcast message or the multicast message.

3. The method for setting up communication of power system equipment according to claim 1, characterized in that: The configuring the IP address of the target device includes: Determining whether the DHCP server assigns an IP address to the target device within a preset time period; If so, it is determined that the IP address of the target device is configured successfully; If not, automatically generate an IP address of the local IP segment to obtain an alternative IP address; Determine whether the candidate IP address conflicts with the IP address of other devices; If not, it is determined that the IP address configuration of the target device is successful; If so, the process returns to the step of automatically generating an IP address for the local IP segment to obtain an alternative IP address.

4. The method for setting up communication of power system equipment according to any one of claims 1 to 3, characterized in that: Also includes: When the target device scans network data sent by other devices, it identifies the message type of the communication message contained in the network data; For each of the message types, obtaining the proportion of the information volume of the communication messages of the message type in the network data; Receive a communication message corresponding to the message type in which the information volume accounts for a greater proportion than a preset proportion in the network data.

5. The method for setting up communication of power system equipment according to claim 4, characterized in that: After receiving the communication message corresponding to the message type in which the information volume accounts for more than a preset proportion in the network data, the method further includes: storing the received communication message in a cache of the target device; The communication messages in the buffer are uploaded to the upper-level system at a preset period.

6. The method for setting up communication of power system equipment according to claim 5, characterized in that: The uploading of the communication messages in the cache to the upper system at a preset period includes: Perform protocol parsing on the communication messages in the cache to obtain multiple data packets; Extracting preset key fields from the data packet to obtain data to be uploaded; The data to be uploaded is uploaded to the upper-level system.

7. The method for setting up communication of power system equipment according to any one of claims 1 to 3, characterized in that: The target device includes a protocol conversion engine, and the method further includes: When receiving a communication message sent by another device, determining whether the target protocol format required by the target device is the same as the initial protocol format of the communication message; If not, converting the communication message from the initial protocol format to a preset standard protocol format through the protocol conversion engine; The communication message is converted from the standard protocol format to the target protocol format by the protocol conversion engine.

8. A communication setting device for power system equipment, characterized in that: Set in the target device, including: A peripheral IP address acquisition module is used to acquire the IP addresses of other devices in the network after the target device is powered on, so that the target device can communicate with other devices; The self-IP address configuration module is used to configure the IP address of the target device, and the IP address configuration method includes automatic allocation of the IP address by a DHCP server and automatic generation of the IP address by the target device; A missing parameter configuration module, used to detect the missing network parameters of the target device and configure it using default configuration parameters; The configuration verification module is used to perform configuration verification with the upper-level device of the target device after the configuration is completed to ensure the correctness of the network connection.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power system device communication setting method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the power system equipment communication setting method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Method and device for configuring IP address

    CN114513492A

  • Method and system for configuring IP (Internet Protocol) for serial server equipment

    CN115801737A