Method and equipment for automatically acquiring IP address of relay protection device

Through the physical connection between the relay protection device and the USB host, the USB interface is used to obtain the USB string descriptor to automatically obtain the IP address of the relay protection device, which solves the problem of inconvenience in manually obtaining the IP address and realizes an efficient network Linking and configuration process.

CN119211195APending Publication Date: 2024-12-27SIEMENS AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310762011.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-26
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, the IP address of the relay protection device needs to be manually obtained, resulting in inconvenient configuration process and low efficiency.

Method used

By establishing a physical connection between the relay protection device and the USB host, a target request is sent using the USB interface to obtain the USB string descriptor, extract the IP address of the relay protection device from it, and establish a network link of the TCP/IP protocol.

Benefits of technology

Automatic IP address acquisition of relay protection devices is realized, simplifying the configuration process, and improving efficiency and convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211195A_ABST
    Figure CN119211195A_ABST
Patent Text Reader

Abstract

The invention provides a method and equipment for automatically acquiring an IP address of a relay protection device, the relay protection device is provided with a first USB interface and a USB character string descriptor, and the USB character string descriptor comprises the IP address of the relay protection device. The method comprises the steps that if it is recognized that the relay protection device is physically connected to a second USB interface of a USB host through a first USB interface, a target request is sent to the first USB interface through the second USB interface, and the target request is used for obtaining a USB descriptor of the relay protection device; receiving a USB character string descriptor sent by the relay protection device through the first USB interface through the second USB interface; and obtaining the IP address of the relay protection device according to the USB character string descriptor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power systems, and in particular to a method and equipment for automatically acquiring an IP address of a relay protection device. Background Art

[0002] Relay protection devices are important equipment in power systems, which play a safe and reliable role in protecting power systems. Before the relay protection devices are put into use, they need to be configured. For example, the management configuration tool DIGSI is used to configure the relay protection devices. The management configuration tool DIGSI provides all the bay equipment selection, engineering design, testing, commissioning, operation and maintenance and other related management configurations required by customers.

[0003] In order to realize the management and configuration of the relay protection device by the management and configuration tool DIGSI, a reliable and stable connection needs to be established between the two, for example, through the IP address (Internet Protocol Address) of the relay protection device. Each relay protection device has its own unique IP address, through which the management and configuration tool DIGSI can establish a connection with the relay protection device.

[0004] In the prior art, it is necessary to manually obtain the IP address of the relay protection device and then input it into the management configuration tool DIGSI. However, such a configuration method brings great inconvenience to the staff. Summary of the invention

[0005] In view of this, the present invention proposes a method for automatically acquiring an IP address of a relay protection device, wherein the relay protection device has a first USB interface and the relay protection device has a USB string descriptor, wherein the USB string descriptor includes the IP address of the relay protection device, and the method includes:

[0006] If it is identified that the relay protection device is physically connected to a second USB interface of a USB host through the first USB interface, a target request is sent to the first USB interface through the second USB interface, wherein the target request is used to obtain a USB descriptor of the relay protection device;

[0007] receiving, through the second USB interface, a USB string descriptor sent by the relay protection device through the first USB interface;

[0008] The IP address of the relay protection device is obtained according to the USB string descriptor.

[0009] According to the method as described above, optionally, after determining the IP address of the relay protection device according to the USB string descriptor, the method further includes: establishing a network link with the relay protection device according to the IP address of the relay protection device and through the first USB interface.

[0010] According to the method as described above, optionally, the transmission protocol of the network link is TCP / IP protocol.

[0011] According to the method as described above, optionally, receiving, through the second USB interface, a USB string descriptor sent by the relay protection device through the first USB interface comprises:

[0012] receiving, through the second USB interface, each descriptor sent by the relay protection device through the first USB interface;

[0013] The USB string descriptor at a preset position is determined from the descriptors.

[0014] The present invention also provides a method for determining an IP address of a relay protection device, wherein the relay protection device has a first USB interface and the relay protection device has a USB string descriptor, wherein the USB string descriptor includes the IP address of the relay protection device, and the method includes:

[0015] Receiving a target request sent by a USB host through a second USB interface, wherein the target request is used to obtain a USB descriptor of the relay protection device, wherein the relay protection device is physically connected to the second USB interface of the USB host through the first USB interface;

[0016] The USB string descriptor is sent to the second USB interface through the first USB interface, so that the USB host obtains the IP address of the relay protection device according to the USB string descriptor.

[0017] According to the method as described above, optionally, after sending the USB string descriptor to the second USB interface through the first USB interface, the method further includes:

[0018] A network link is established with the USB host through the first USB interface.

[0019] According to the method as described above, optionally, the transmission protocol of the network connection is TCP / IP protocol.

[0020] According to the method as described above, optionally, sending the USB string descriptor to the second USB interface through the first USB interface includes:

[0021] Each descriptor is sent to the second USB interface through the first USB interface, so that the USB host determines the USB string descriptor at a preset position from each descriptor.

[0022] The present invention further provides a device for automatically acquiring an IP address of a relay protection device, wherein the relay protection device has a first USB interface and the relay protection device has a USB string descriptor, wherein the USB string descriptor includes the IP address of the relay protection device, and the device includes:

[0023] a first sending unit, configured to send a target request to the first USB interface through the second USB interface if it is identified that the relay protection device is physically connected to a second USB interface of a USB host through the first USB interface, wherein the target request is used to obtain a USB descriptor of the relay protection device;

[0024] a first receiving unit, configured to receive, through the second USB interface, the USB string descriptor sent by the relay protection device through the first USB interface;

[0025] An acquisition unit is used to acquire the IP address of the relay protection device according to the USB string descriptor.

[0026] According to the above device, optionally, it also includes:

[0027] A first communication unit is used to establish a network link with the relay protection device according to the IP address of the relay protection device and through the first USB interface.

[0028] According to the above device, optionally, the transmission protocol of the network link is TCP / IP protocol.

[0029] According to the above device, optionally, the first receiving unit is specifically used for:

[0030] receiving, through the second USB interface, each descriptor sent by the relay protection device through the first USB interface;

[0031] The USB string descriptor at a preset position is determined from the descriptors.

[0032] The present invention further provides a device for determining an IP address of a relay protection device, wherein the relay protection device has a first USB interface and the relay protection device has a USB string descriptor, wherein the USB string descriptor includes the IP address of the relay protection device, and the device includes:

[0033] a second receiving unit, configured to receive a target request sent by a USB host through a second USB interface, wherein the target request is used to obtain a USB descriptor of the relay protection device, wherein the relay protection device is physically connected to the second USB interface of the USB host through the first USB interface;

[0034] A second sending unit is used to send the USB string descriptor to the second USB interface through the first USB interface, so that the USB host obtains the IP address of the relay protection device according to the USB string descriptor.

[0035] According to the device as described above, optionally, it also includes:

[0036] A second communication unit is used to establish a network link with the USB host through the first USB interface.

[0037] According to the device as described above, optionally, the transmission protocol of the network connection is TCP / IP protocol.

[0038] According to the device as described above, optionally, the second sending unit is specifically configured to:

[0039] Each descriptor is sent to the second USB interface through the first USB interface, so that the USB host determines the USB string descriptor at a preset position from each descriptor.

[0040] The present invention further provides a device for automatically acquiring an IP address of a relay protection device, comprising:

[0041] at least one first memory for storing instructions;

[0042] At least one first processor is used to execute the method for automatically acquiring the IP address of the relay protection device according to any one of the above items according to the instructions stored in the first memory.

[0043] The present invention also provides a device for automatically acquiring an IP address of a relay protection device, comprising:

[0044] at least one second memory for storing instructions;

[0045] At least one second processor is used to execute the method for automatically acquiring the IP address of the relay protection device according to any one of the above items according to the instructions stored in the second memory.

[0046] According to the present invention, when the relay protection device is physically connected to the USB host, the IP address of the relay protection device is automatically obtained so as to establish a subsequent network link. The method is convenient, fast and highly efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings so that the above and other features and advantages of the present invention will be more apparent to those skilled in the art. In the accompanying drawings:

[0048] Figure 1 The figure is a flow chart of a method for automatically acquiring an IP address of a relay protection device according to an embodiment of the present invention.

[0049] Figure 2 The figure is a flow chart of a method for automatically acquiring an IP address of a relay protection device according to another embodiment of the present invention.

[0050] Figure 3 The figure is a flow chart of a method for automatically acquiring an IP address of a relay protection device according to another embodiment of the present invention.

[0051] Figure 4 The figure is a flow chart of a method for automatically acquiring an IP address of a relay protection device according to yet another embodiment of the present invention.

[0052] Figure 5 It is a schematic diagram of the structure of a device for automatically acquiring the IP address of a relay protection device according to an embodiment of the present invention.

[0053] Figure 6 It is a schematic diagram of the structure of a device for automatically acquiring the IP address of a relay protection device according to another embodiment of the present invention.

[0054] Figure 7 It is a schematic diagram of the structure of a device for automatically acquiring the IP address of a relay protection device according to yet another embodiment of the present invention.

[0055] Figure 8 It is a schematic diagram of the structure of a device for automatically acquiring the IP address of a relay protection device according to another embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present invention more clear, the present invention is further described in detail with reference to the following embodiments. Nouns and pronouns related to people in this patent application are not limited to specific genders.

[0057] The invention provides a method for automatically acquiring an IP address of a relay protection device, so that the relay protection device can automatically upload its IP address.

[0058] Embodiment 1

[0059] This embodiment provides a method for automatically obtaining the IP address of a relay protection device. The execution subject of the method is a device that automatically obtains the IP address of the relay protection device. The device can be integrated into a USB (Universal Serial Bus) host or the USB host itself. The USB host is, for example, a PC (Personal Computer) or a control platform. The execution subject has a tool that can manage and configure the relay protection device, such as DIGSI. The user can configure the parameters of the relay protection device through the management and configuration tool. The relay protection device has a first USB interface, and the USB host has a second USB interface.

[0060] like Figure 1 FIG. 1 is a flow chart of a method for automatically acquiring an IP address of a relay protection device according to this embodiment. The method includes:

[0061] Step 101: if it is identified that the relay protection device is physically connected to a second USB interface of a USB host through the first USB interface, a target request is sent to the first USB interface through the second USB interface, where the target request is used to obtain a USB descriptor of the relay protection device.

[0062] The relay protection device has a first USB interface, and the relay protection device has a USB string descriptor. USB descriptors generally include the following: device descriptor, configuration descriptor, interface descriptor, endpoint descriptor, and string descriptor. Among them, the string descriptor uses a string to describe some attributes of a device, such as the name of the device manufacturer, the name of the product, the product serial number, etc., and this string can be defined by the user. The USB string descriptor is optional for a device. In this embodiment, the IP address of the relay protection device is defined in the USB string descriptor.

[0063] The physical connection here refers to the connection between the relay protection device and the USB host via a USB data cable. The two ends of the USB data cable are respectively inserted into the first USB interface and the second USB interface. How to achieve the physical connection between the relay protection device and the USB host belongs to the prior art and will not be repeated here.

[0064] When the device for automatically acquiring the IP address of the relay protection device recognizes that the relay protection device is plugged into the second USB interface of the USB host through the first USB interface, the device automatically sends a target request to the relay protection device to acquire the descriptor of the relay protection device.

[0065] As an exemplary illustration, the target request may be a GetDescriptor request.

[0066] It should be noted that the target request of this embodiment is not a new request for obtaining an IP address, and the request originally exists in the USB communication protocol, so it does not increase the burden on the network or change the original underlying protocol.

[0067] Step 102: Receive, through the second USB interface, a USB string descriptor sent by the relay protection device through the first USB interface.

[0068] After receiving the target request, the relay protection device will send its own USB string descriptor to the device that automatically obtains the IP address of the relay protection device through the first USB interface. Of course, other descriptors can also be sent to the USB host at the same time. The device that automatically obtains the IP address of the relay protection device receives the USB string descriptor through the second USB interface for subsequent parsing.

[0069] As an exemplary illustration, the target request is used to obtain the USB descriptor in the relay protection device, so the relay protection device sends each USB descriptor to the USB host, and each USB descriptor includes a USB string descriptor. After receiving each USB descriptor, the device determines the USB string descriptor at a preset position. The USB string descriptor at the preset position represents a string descriptor containing an IP address.

[0070] Step 103: Obtain the IP address of the relay protection device according to the USB string descriptor.

[0071] As an exemplary explanation, the numbers and / or letters in the USB string descriptor are the IP address of the relay protection device. For example, the USB string descriptor includes C0 A8 5F 7C, and these numbers can be used as the IP address. Of course, which numbers or letters in the USB string descriptor are used as the IP address can also be set according to actual needs, which will not be repeated here.

[0072] Optionally, if multiple relay protection devices are connected to the second USB interface of the USB host through their own first USB interface, the physical connection can be achieved through a USB extender, and the above method can be executed on each relay protection device to automatically obtain the IP address of each relay protection device.

[0073] According to the present invention, when the relay protection device is physically connected to the USB host, the IP address of the relay protection device is automatically obtained so as to establish a subsequent network link. The method is convenient, fast and highly efficient.

[0074] Embodiment 2

[0075] This embodiment further supplements the method for automatically obtaining the IP address of the relay protection device in the first embodiment.

[0076] like Figure 2 FIG. 1 is a flow chart of a method for automatically acquiring an IP address of a relay protection device according to this embodiment.

[0077] Step 201: If it is identified that the relay protection device is physically connected to a second USB interface of a USB host through the first USB interface, a target request is sent to the first USB interface through the second USB interface, and the target request is used to obtain a USB descriptor of the relay protection device.

[0078] This step is the same as step 101 and will not be described again here.

[0079] Step 202: Receive, through the second USB interface, a USB string descriptor sent by the relay protection device through the first USB interface.

[0080] This step is consistent with step 102 and will not be described again here.

[0081] Step 203: Acquire the IP address of the relay protection device according to the USB string descriptor.

[0082] This step is consistent with step 103 and will not be described again here.

[0083] Step 204: Establish a network link with the relay protection device through the first USB interface according to the IP address of the relay protection device.

[0084] A network link is a communication connection between two or more devices that enables these devices to operate online at a single location. Through this network link, the USB host can configure the relay protection device.

[0085] Establishing a network link through the first USB interface means that the first USB interface is used as a network card, so that the relay protection device can receive network signals through the first USB interface.

[0086] Optionally, when the USB host already knows the IP address of the relay protection device, if the two are located at relatively far locations due to on-site requirements, they can be connected to the second USB interface through at least two USB adapters, one end of which is a USB interface and the other end is a network interface. The USB interface here is an interface that can be used with the first USB interface or the second USB interface, and the network interface is a variety of interfaces of network equipment. The network interfaces we are currently using are all Ethernet interfaces. Common Ethernet interface types include RJ-45 interface, RJ-11 interface, SC optical fiber interface, FDDI interface, AUI interface, BNC interface, and Console interface. For example, the network can be accessed through the RJ-45 interface to achieve a long-distance network link. In this way, the USB host can continue to configure the relay protection device.

[0087] As an exemplary illustration, the transmission protocol of the network link is TCP / IP (Transmission Control Protocol / Internet Protocol). This transmission protocol is a prior art and will not be described in detail here. Of course, the transmission protocol of the network link can also be any other protocol, which will not be described in detail here.

[0088] According to this embodiment, after the IP address of the relay protection device is automatically obtained through physical connection, a network link is established to achieve management and configuration of the relay protection device, which is convenient, fast and highly efficient.

[0089] Embodiment 3

[0090] This embodiment provides a method for automatically obtaining the IP address of a relay protection device. The execution subject of the method is a device for automatically obtaining the IP address of the relay protection device. The device can be integrated into the relay protection device or the relay protection device itself. The USB host is, for example, a PC or a control platform, etc. The USB host or control platform has a tool that can manage and configure the relay protection device, such as DIGSI. The user can configure the parameters of the relay protection device through the management and configuration tool. The relay protection device has a first USB interface, and the USB host has a second USB interface.

[0091] like Figure 3 FIG. 1 is a flow chart of a method for automatically acquiring an IP address of a relay protection device according to this embodiment. The method includes:

[0092] Step 301, receiving a target request sent by a USB host through a second USB interface, the target request is used to obtain a USB descriptor of a relay protection device. The relay protection device is physically connected to the second USB interface of the USB host through the first USB interface.

[0093] The relay protection device has a first USB interface, and the relay protection device has a USB string descriptor. USB descriptors generally include the following: device descriptor, configuration descriptor, interface descriptor, endpoint descriptor, and string descriptor. Among them, the string descriptor uses a string to describe some attributes of a device, such as the name of the device manufacturer, the name of the product, the product serial number, etc., and this string can be defined by the user. The USB string descriptor is optional for a device. In this embodiment, the IP address of the relay protection device is defined in the USB string descriptor.

[0094] When the device that automatically obtains the IP address of the relay protection device recognizes that the relay protection device is inserted into the second USB interface of the USB host through the first USB interface, it automatically sends a target request to the relay protection device to obtain the USB descriptor of the relay protection device. The physical connection here refers to the connection between the relay protection device and the USB host through the USB data cable. The two ends of the USB data cable are respectively inserted into the first USB interface and the second USB interface. How to realize the physical connection between the relay protection device and the USB host belongs to the prior art and will not be repeated here.

[0095] As an exemplary illustration, the target request may be a GetDescriptor request.

[0096] It should be noted that the target request of this embodiment is not a new request for obtaining an IP address, and the request originally exists in the USB communication protocol, so it does not increase the burden on the network or change the original underlying protocol.

[0097] Step 302: Send a USB string descriptor to the second USB interface through the first USB interface, so that the USB host obtains the IP address of the relay protection device according to the USB string descriptor.

[0098] After receiving the target request, the device that automatically obtains the IP address of the relay protection device automatically sends the USB string descriptor to the second USB interface through the first USB interface. Of course, other descriptors can also be sent to the USB host at the same time. The device that automatically obtains the IP address of the relay protection device receives the USB string descriptor through the second USB interface for subsequent parsing.

[0099] As an exemplary illustration, the target request is used to obtain the USB descriptor in the relay protection device, so the relay protection device sends each USB descriptor to the USB host, and each USB descriptor includes a USB string descriptor. After receiving each USB descriptor, the device determines the USB string descriptor at a preset position. The USB string descriptor at the preset position represents a string descriptor containing an IP address.

[0100] As an exemplary explanation, the numbers and / or letters in the USB string descriptor are the IP address of the relay protection device. For example, the USB string descriptor includes C0 A8 5F 7C, and these numbers and letters can be used as the IP address.

[0101] Optionally, if multiple relay protection devices are connected to the second USB interface of the USB host through their own first USB interface, the physical connection can be achieved through a USB extender, and the above method can be executed on each relay protection device to automatically obtain the IP address of each relay protection device.

[0102] In this embodiment, when the relay protection device establishes a physical connection with the USB host, the IP address of the relay protection device can be automatically sent to the USB host so as to establish a subsequent network link. This method is convenient and fast with high efficiency.

[0103] Embodiment 4

[0104] This embodiment further supplements the method for automatically obtaining the IP address of the relay protection device in the third embodiment.

[0105] Step 401, receiving a target request sent by a USB host through a second USB interface, the target request is used to obtain a USB descriptor of a relay protection device. The relay protection device is physically connected to the second USB interface of the USB host through the first USB interface.

[0106] Step 401 is the same as step 301 and will not be described again.

[0107] Step 402: Send a USB string descriptor to the second USB interface through the first USB interface, so that the USB host obtains the IP address of the relay protection device according to the USB string descriptor.

[0108] Step 402 is the same as step 302 and will not be described again.

[0109] Step 403: Establish a network link with the USB host through the first USB interface.

[0110] A network link is a communication connection between two or more devices that enables these devices to operate online at a single location. Through this network link, the USB host can configure the relay protection device.

[0111] Establishing a network link through the first USB interface means that the first USB interface is used as a network card, so that the relay protection device can receive network signals through the first USB interface.

[0112] Optionally, when the USB host already knows the IP address of the relay protection device, if the two are located at relatively far locations due to on-site requirements, they can be connected to the second USB interface through at least two USB adapters, one end of which is a USB interface and the other end is a network interface. The USB interface here is an interface that can be used with the first USB interface or the second USB interface, and the network interface is a variety of interfaces of network equipment. The network interfaces we are currently using are all Ethernet interfaces. Common Ethernet interface types include RJ-45 interface, RJ-11 interface, SC optical fiber interface, FDDI interface, AUI interface, BNC interface, and Console interface. For example, the network can be accessed through the RJ-45 interface to achieve a long-distance network link. In this way, the USB host can continue to configure the relay protection device.

[0113] As an exemplary illustration, the transmission protocol of the network link is TCP / IP (Transmission Control Protocol / Internet Protocol). This transmission protocol is a prior art and will not be described in detail here. Of course, the transmission protocol of the network link can also be any other protocol, which will not be described in detail here.

[0114] Optionally, the configuration information sent by the USB host is received through the first USB interface and stored, so that the USB host can implement management configuration of the relay protection device.

[0115] According to this embodiment, after the USB host automatically obtains the IP address of the relay protection device through physical connection, a network link is established to achieve management and configuration of the relay protection device, which is convenient, fast and efficient.

[0116] Embodiment 5

[0117] This embodiment provides a device for automatically acquiring the IP address of a relay protection device, which is used to execute the method for automatically acquiring the IP address of a relay protection device in Embodiment 1. The device can be integrated into a USB host or can be the USB host itself. The USB host is, for example, a PC (Personal Computer) or a control platform, and the execution subject has a tool that can manage and configure the relay protection device, such as DIGSI. The user can configure the parameters of the relay protection device through the management and configuration tool. The relay protection device has a first USB interface, and the USB host has a second USB interface.

[0118] like Figure 5 , which is a schematic diagram of the structure of a device for automatically acquiring an IP address of a relay protection device according to this embodiment. The device for automatically acquiring an IP address of a relay protection device comprises a first sending unit 501 , a first receiving unit 502 and an acquiring unit 503 .

[0119] Among them, the first sending unit 501 is used to send a target request to the first USB interface through the second USB interface if it is identified that the relay protection device is physically connected to a second USB interface of a USB host through the first USB interface, and the target request is used to obtain the USB descriptor of the relay protection device; the first receiving unit 502 is used to receive the USB string descriptor sent by the relay protection device through the first USB interface through the second USB interface; the obtaining unit 503 is used to obtain the IP address of the relay protection device according to the USB string descriptor.

[0120] Optionally, the first receiving unit 502 is specifically configured to:

[0121] receiving, through the second USB interface, each descriptor sent by the relay protection device through the first USB interface;

[0122] A USB string descriptor at a preset position is determined from the descriptors.

[0123] The working methods of each unit in this embodiment are the same as those in the previous embodiment and will not be described again here.

[0124] When the relay protection device is physically connected to the USB host, the device of this embodiment automatically obtains the IP address of the relay protection device to establish a subsequent network link. This method is convenient and efficient.

[0125] Embodiment 6

[0126] This embodiment further supplements the device for automatically acquiring the IP address of the relay protection device in the fifth embodiment.

[0127] like Figure 6 , which is a schematic diagram of the structure of a device for automatically acquiring an IP address of a relay protection device according to this embodiment, the device includes a first sending unit 501 , a first receiving unit 502 , an acquiring unit 503 and a first communication unit 601 .

[0128] Among them, the first sending unit 501 is used to send a target request to the first USB interface through the second USB interface if it is identified that the relay protection device is physically connected to a second USB interface of a USB host through the first USB interface, and the target request is used to obtain the USB descriptor of the relay protection device; the first receiving unit 502 is used to receive the USB string descriptor sent by the relay protection device through the first USB interface through the second USB interface; the acquisition unit 503 is used to obtain the IP address of the relay protection device according to the USB string descriptor; the first communication unit 601 is used to establish a network link with the relay protection device according to the IP address of the relay protection device and through the first USB interface.

[0129] Optionally, when the USB host already knows the IP address of the relay protection device, if the two are located at far locations due to field requirements, the first USB interface is connected to the second USB interface through at least two USB adapters, one end of the USB adapter is a USB interface, and the other end is a network interface. That is, the first USB interface and the second USB interface are connected together through at least two USB adapters.

[0130] The working methods of each unit in this embodiment are the same as those in the previous embodiment and will not be described again here.

[0131] According to this embodiment, after the IP address of the relay protection device is automatically obtained through physical connection, a network link is established to achieve management and configuration of the relay protection device, which is convenient, fast and highly efficient.

[0132] Embodiment 7

[0133] This embodiment provides a device for automatically acquiring the IP address of a relay protection device, which is used to execute the method for automatically acquiring the IP address of a relay protection device in Embodiment 3. The device can be integrated into the relay protection device, or it can be the relay protection device itself. The USB host is, for example, a PC or a control platform, and the USB host or control platform has a tool that can manage and configure the relay protection device, such as DIGSI. The user can configure the parameters of the relay protection device through the management and configuration tool. The relay protection device has a first USB interface, and the USB host has a second USB interface. The relay protection device has a USB string descriptor.

[0134] like Figure 7 , which is a schematic diagram of the structure of a device for automatically acquiring an IP address of a relay protection device according to this embodiment. The device includes a second receiving unit 701 and a second sending unit 702 .

[0135] Among them, the second receiving unit 701 is used to receive a target request sent by a USB host through a second USB interface, the target request is used to obtain a USB descriptor of a relay protection device, and the relay protection device is physically connected to the second USB interface of the USB host through the first USB interface; the second sending unit 702 is used to send a USB string descriptor to the second USB interface through the first USB interface, so that the USB host obtains the IP address of the relay protection device according to the USB string descriptor.

[0136] Optionally, the second sending unit 702 is specifically configured to send each descriptor to the second USB interface through the first USB interface, so that the USB host determines a USB string descriptor at a preset position from each descriptor.

[0137] The working methods of each unit in this embodiment are the same as those in the previous embodiment and will not be described again here.

[0138] When the relay protection device establishes a physical connection with the USB host, the device of this embodiment automatically sends the IP address of the relay protection device to establish a subsequent network link. This method is convenient and fast with high efficiency.

[0139] Embodiment 8

[0140] This embodiment further supplements the device for automatically acquiring the IP address of the relay protection device in the seventh embodiment.

[0141] like Figure 8 As shown, the device for automatically acquiring the IP address of a relay protection device in this embodiment includes a second receiving unit 701 , a second sending unit 702 and a second communication unit 801 .

[0142] Among them, the second receiving unit 701 is used to receive a target request sent by a USB host through a second USB interface, the target request is used to obtain a USB descriptor of a relay protection device, and the relay protection device is physically connected to the second USB interface of the USB host through the first USB interface; the second sending unit 702 is used to send a USB string descriptor to the second USB interface through the first USB interface, so that the USB host obtains the IP address of the relay protection device according to the USB string descriptor; the second communication unit 801 is used to establish a network link with the USB host through the first USB interface.

[0143] Optionally, when the USB host already knows the IP address of the relay protection device, if the two are located at far locations due to field requirements, the first USB interface is connected to the second USB interface through at least two USB adapters, one end of the USB adapter is a USB interface, and the other end is a network interface. That is, the first USB interface and the second USB interface are connected together through at least two USB adapters.

[0144] The working methods of each unit in this embodiment are the same as those in the previous embodiment and will not be described again here.

[0145] According to this embodiment, after the USB host automatically obtains the IP address of the relay protection device through physical connection, a network link is established to achieve management and configuration of the relay protection device, which is convenient, fast and efficient.

[0146] The present invention also provides a device for automatically acquiring the IP address of a relay protection device, comprising at least one first memory and at least one first processor. The first memory is used to store instructions. The first processor is used to execute the method for automatically acquiring the IP address of a relay protection device described in any of the above embodiments according to the instructions stored in the first memory.

[0147] The present invention also provides a device for automatically acquiring the IP address of a relay protection device, comprising at least one second memory and at least one second processor. The second memory is used to store instructions. The second processor is used to execute the method for automatically acquiring the IP address of a relay protection device described in any of the above embodiments according to the instructions stored in the second memory.

[0148] An embodiment of the present invention further provides a readable storage medium in which machine-readable instructions are stored. When the machine-readable instructions are executed by a machine, the machine executes the method for automatically acquiring the IP address of a relay protection device described in any of the above embodiments.

[0149] The readable medium stores machine-readable instructions, which, when executed by the processor, cause the processor to execute any of the aforementioned methods. Specifically, a system or device equipped with a readable storage medium may be provided, on which a software program code implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system or device reads and executes the machine-readable instructions stored in the readable storage medium.

[0150] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above-mentioned embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute a part of the present invention.

[0151] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.

[0152] Those skilled in the art should understand that the various embodiments disclosed above can be modified and altered in various ways without departing from the essence of the invention. Therefore, the protection scope of the present invention should be defined by the appended claims.

[0153] It should be noted that not all steps and units in the above-mentioned processes and system structure diagrams are necessary, and some steps or units can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The device structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.

[0154] In the above embodiments, the hardware unit can be realized by mechanical means or electrical means. For example, a hardware unit or a processor can include permanent dedicated circuits or logic (such as special processors, FPGA or ASIC) to complete the corresponding operation. The hardware unit or the processor can also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete the corresponding operation. Concrete implementation (mechanical means or dedicated permanent circuits or temporarily set circuits) can be determined based on cost and time considerations.

[0155] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. 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 automatically acquiring an IP address of a relay protection device, wherein the relay protection device has a first USB interface and the relay protection device has a USB string descriptor, characterized in that: The USB string descriptor includes the IP address of the relay protection device, and the method includes: If it is identified that the relay protection device is physically connected to a second USB interface of a USB host through the first USB interface, a target request is sent to the first USB interface through the second USB interface, wherein the target request is used to obtain a USB descriptor of the relay protection device; receiving, through the second USB interface, a USB string descriptor sent by the relay protection device through the first USB interface; The IP address of the relay protection device is obtained according to the USB string descriptor.

2. The method according to claim 1, characterized in that After determining the IP address of the relay protection device according to the USB string descriptor, the method further includes: A network link is established with the relay protection device according to the IP address of the relay protection device and through the first USB interface.

3. The method according to claim 2, characterized in that The transmission protocol of the network link is TCP / IP protocol.

4. The method according to any one of claims 1 to 3, characterized in that Receiving, through the second USB interface, a USB string descriptor sent by the relay protection device through the first USB interface includes: receiving, through the second USB interface, each descriptor sent by the relay protection device through the first USB interface; The USB string descriptor at a preset position is determined from the descriptors.

5. A method for determining an IP address of a relay protection device, wherein the relay protection device has a first USB interface and the relay protection device has a USB string descriptor, characterized in that: The USB string descriptor includes the IP address of the relay protection device, and the method includes: Receiving a target request sent by a USB host through a second USB interface, wherein the target request is used to obtain a USB descriptor of the relay protection device, wherein the relay protection device is physically connected to the second USB interface of the USB host through the first USB interface; The USB string descriptor is sent to the second USB interface through the first USB interface, so that the USB host obtains the IP address of the relay protection device according to the USB string descriptor.

6. The method according to claim 5, characterized in that After sending the USB string descriptor to the second USB interface through the first USB interface, the method further includes: A network link is established with the USB host through the first USB interface.

7. The method according to claim 6, characterized in that The transmission protocol of the network connection is TCP / IP protocol.

8. The method according to any one of claims 5 to 7, characterized in that: Sending the USB string descriptor to the second USB interface through the first USB interface includes: Each descriptor is sent to the second USB interface through the first USB interface, so that the USB host determines the USB string descriptor at a preset position from each descriptor.

9. A device for automatically acquiring an IP address of a relay protection device, wherein the relay protection device has a first USB interface and the relay protection device has a USB string descriptor, characterized in that: The USB string descriptor includes the IP address of the relay protection device, and the device includes: a first sending unit, configured to send a target request to the first USB interface through the second USB interface if it is identified that the relay protection device is physically connected to a second USB interface of a USB host through the first USB interface, wherein the target request is used to obtain a USB descriptor of the relay protection device; a first receiving unit, configured to receive, through the second USB interface, a USB string descriptor sent by the relay protection device through the first USB interface; An acquisition unit is used to acquire the IP address of the relay protection device according to the USB string descriptor.

10. The device according to claim 9, characterized in that Also includes: A first communication unit is used to establish a network link with the relay protection device according to the IP address of the relay protection device and through the first USB interface.

11. The device according to claim 10, characterized in that The transmission protocol of the network link is TCP / IP protocol.

12. The device according to any one of claims 9 to 11, characterized in that The first receiving unit is specifically configured to: receiving, through the second USB interface, each descriptor sent by the relay protection device through the first USB interface; The USB string descriptor at a preset position is determined from the descriptors.

13. A device for determining an IP address of a relay protection device, wherein the relay protection device has a first USB interface and the relay protection device has a USB string descriptor, characterized in that: The USB string descriptor includes the IP address of the relay protection device, and the device includes: a second receiving unit, configured to receive a target request sent by a USB host through a second USB interface, wherein the target request is used to obtain a USB descriptor of the relay protection device, wherein the relay protection device is physically connected to the second USB interface of the USB host through the first USB interface; A second sending unit is used to send the USB string descriptor to the second USB interface through the first USB interface, so that the USB host obtains the IP address of the relay protection device according to the USB string descriptor.

14. The device according to claim 13, characterized in that Also includes: A second communication unit is used to establish a network link with the USB host through the first USB interface.

15. The device according to claim 14, characterized in that The transmission protocol of the network connection is TCP / IP protocol.

16. The device according to any one of claims 13 to 15, characterized in that The second sending unit is specifically used for: Each descriptor is sent to the second USB interface through the first USB interface, so that the USB host determines the USB string descriptor at a preset position from each descriptor.

17. A device for automatically acquiring the IP address of a relay protection device, characterized in that: include: at least one first memory for storing instructions; At least one first processor, configured to execute the method for automatically acquiring the IP address of a relay protection device according to any one of claims 1 to 4 according to the instructions stored in the first memory.

18. A device for automatically acquiring the IP address of a relay protection device, characterized in that: include: at least one second memory for storing instructions; At least one second processor, configured to execute the method for automatically acquiring the IP address of a relay protection device according to any one of claims 5-8 according to the instructions stored in the second memory.