Method, computing device and storage medium for sending configuration data of a network

By determining the topology structure of the network node device and the first node device at the control device, generating and sending configuration data packets, the problem of low efficiency in sending configuration data in the traditional method is solved, and a more efficient network configuration is achieved.

CN118890307BActive Publication Date: 2025-01-21ZHEJIANG GUOLI XINAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411372879.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-21
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

The traditional network configuration data transmission method is inefficient, resulting in low configuration configuration efficiency.

Method used

At the control device, based on the physical connection relationship of the network node device, the first node device and topology are determined, a configuration data packet is generated, and sent to the first node device to achieve efficient transmission of configuration data.

Benefits of technology

The efficiency of sending configuration data and the efficiency of network configuration are improved, allowing multiple node devices to receive configuration parameters without knowing the physical address of each node.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890307B_ABST
    Figure CN118890307B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention relates to a method, a computing device and a storage medium for sending configuration data of a network. The method includes, at a control device, based on the physical connection relationship of multiple node devices in the network, determining the node device directly connected to the control device as the first node device, determining the topology structure between the multiple node devices; in response to determining that there is a linear or ring topology structure between the first node device and at least some of the multiple node devices, determining the connection order of the node devices so as to arrange the configuration parameter groups of each node device in the linear or ring topology structure in sequence starting from the first node device, so as to generate a configuration data packet; the generated configuration data packet also includes a data packet header, which at least indicates the address of the first node device involved in the configuration data packet; and sending the corresponding configuration data packet to the first node device. Thus, the transmission efficiency of configuration data and the configuration efficiency can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention generally relate to the field of communications, and more particularly to a method, a computing device, and a storage medium for transmitting configuration data of a network. Background Art

[0002] The traditional network configuration method requires the configuration parameters of each node in the network to be configured in advance before use. First, the address of the node to be configured must be known before the configuration data can be sent, so that the receiving node can complete the configuration. When devices are added or reduced in the network, the configuration data needs to be resent to each node and then the configuration needs to be reconfigured.

[0003] In summary, the traditional method for sending configuration data on a network has the disadvantage that the efficiency of sending configuration data is low, which leads to low configuration efficiency. Summary of the invention

[0004] In view of the above problems, the present invention provides a method, a computing device and a storage medium for sending configuration data of a network, which can effectively improve the transmission efficiency of configuration data and the efficiency of network configuration.

[0005] According to a first aspect of the present invention, there is provided a method for sending configuration data of a network, comprising: at a control device, based on the physical connection relationship of multiple node devices in the network, determining a node device directly connected to the control device as a first node device, and determining a topology structure among the multiple node devices; in response to determining that a linear or ring topology structure exists between the first node device and at least some of the multiple node devices, determining a connection order of the node devices involved in the linear or ring topology structure; based on the determined connection order of the node devices, arranging configuration parameter groups of each node device in the linear or ring topology structure in sequence starting from the first node device, so as to generate a configuration data packet; the generated configuration data packet also includes a data packet header, the data packet header at least indicating an address of the first node device involved in the configuration data packet; and sending a corresponding configuration data packet to the first node device.

[0006] In some embodiments, the node device directly connected to the control device includes: a node device that is physically directly connected to the control device, or a node device that is directly connected to the control device via a switch.

[0007] In some embodiments, sending a corresponding configuration data packet to a first-node device includes: in response to confirming that there are multiple first-node devices directly connected to the switch, sending multiple configuration data packets to the switch, each of the multiple configuration data packets corresponding to a first-node device directly connected to the switch; and forwarding the corresponding configuration data packet to each first-node device directly connected thereto via the switch.

[0008] In some embodiments, the configuration parameter group of the node device includes: a data length bit, used to indicate the data length of the configuration parameter group; a data check bit, used to indicate the data check value of the configuration parameter group; and a data bit, used to indicate the configuration parameter data of the node device corresponding to the configuration parameter group.

[0009] In some embodiments, the configuration parameter group for each node device in a linear or ring topology structure arranged in sequence starting from a first node device includes: determining the configuration parameter group for each node device in a linear or ring topology structure arranged in sequence ...

[0010] In some embodiments, the method for sending configuration data for a network also includes: in response to determining that a configuration parameter group in a configuration data packet is not received normally, determining the number and location of node devices that have not received the configuration parameter group normally; based on the number and location of node devices that have not received the configuration parameter group normally, comparing: the total data length of the retransmitted configuration data packet in a single-point retransmission mode, and the total data length of the retransmitted configuration data packet in a multi-point retransmission mode; and based on the comparison result, generating a retransmitted configuration data packet in a retransmission mode with a smaller total data length, so as to retransmit the configuration parameter group.

[0011] In some embodiments, the method for sending configuration data for a network also includes: in a single-point retransmission mode, a single-point retransmission configuration data packet is separately sent to each node device that has not normally received the configuration parameter group, and the single-point retransmission configuration data packet includes: a data packet header and a configuration parameter group corresponding to the receiving node device; and based on the sum of the data lengths of each single-point retransmission configuration data packet, the total data length of the retransmission configuration data packet in the single-point retransmission mode is calculated.

[0012] In some embodiments, the method for sending configuration data for a network also includes: in a multi-point retransmission mode, sending a multi-point retransmission configuration data packet to a node device that is closest to a first node device among multiple node devices that have not normally received a configuration parameter group, the multi-point retransmission configuration data packet includes: a data packet header corresponding to the receiving node device and multiple configuration parameter groups, the multiple configuration parameter groups correspond to multiple node devices that have not normally received the configuration parameter group, and are arranged in sequence according to the connection order of the node devices in a linear or ring topology structure; based on the data length of the multi-point retransmission configuration data packet, the total data length of the retransmission configuration data packet in the multi-point retransmission mode is calculated.

[0013] According to the second aspect of the present invention, a method for sending configuration data for a network is also provided, characterized in that it includes: receiving, at a current node device, a configuration data packet from an upper-level device, the upper-level device including a control device, a switch or other node device, the received configuration data packet is an initial configuration data packet, or a configuration data packet updated based on the initial configuration data packet, and the initial configuration data packet is generated by any method of the first aspect; intercepting data related to the current node device from the configuration data packet so as to update the configuration data packet based on the remaining data in the configuration data packet; and forwarding the updated configuration data packet to a next-level node device directly connected to the current node device, the current node device and the next-level node device being in the same linear or ring topology.

[0014] In some embodiments, intercepting data related to the current node device from a configuration data packet includes: reading the configuration data packet in forward or reverse order based on a predetermined data packet reading method; in response to determining that the current node device is a first node device, intercepting a data packet header from the configuration data packet, the first node device being physically directly connected to a control device, or being directly connected to the control device via a switch; and determining the data length of a configuration parameter group related to the current node device in the configuration data packet based on the first data length bit read, so as to intercept the configuration parameter group related to the current node device.

[0015] In some embodiments, the method for sending configuration data for a network also includes: obtaining a configuration parameter group of the current node device based on intercepted data related to the current node device; parsing the obtained configuration parameter group to obtain a data verification value and configuration parameter data about the current node device; calculating a received data verification value based on the obtained configuration parameter data via a predetermined verification algorithm; in response to determining that the calculated received data verification value does not match the obtained data verification value, determining that the current node device has not received the configuration parameter group normally; and feeding back to the control device through the network that the current node device has not received the configuration parameter group normally.

[0016] In some embodiments, the method for sending configuration data for a network also includes: multiple node devices in a linear or ring topology structure forward updated configuration data packets to the next-level node devices in sequence from the first node device to the last node device based on the connection order of the node devices, until the data in the initial configuration data packet is completely intercepted or there is no next-level node device; and the first node device has a direct physical connection with the control device, or is directly connected to the control device via a switch.

[0017] According to a third aspect of the present invention, a computing device is provided, comprising: at least one processing unit; at least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, enabling the computing device to perform the steps of the method according to the first aspect.

[0018] According to a fourth aspect of the present invention, a computer-readable storage medium is further provided, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a machine, the method of the first aspect of the present invention is executed.

[0019] According to a fifth aspect of the present invention, there is also provided a computer program product, comprising a computer program, wherein when the computer program is executed by a machine, the method of the first aspect of the present invention is performed.

[0020] 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

[0021] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements.

[0022] Figure 1 A schematic diagram of an exemplary network for implementing an embodiment of the present invention is shown.

[0023] Figure 2a A schematic diagram of the structure of a configuration data packet according to an embodiment of the present invention is shown.

[0024] Figure 2b A schematic diagram of configuration data packet interception according to an embodiment of the present invention is shown.

[0025] Figure 3 A schematic diagram of a configuration data packet sending process in a linear topology structure according to an embodiment of the present invention is shown.

[0026] Figure 4 A schematic diagram of a configuration data packet sending process in a scenario with a switch according to an embodiment of the present invention is shown.

[0027] Figure 5 A flow chart of a method for sending configuration data of a network according to an embodiment of the present invention is shown.

[0028] Figure 6 A flow chart of a method for resending configuration parameters according to an embodiment of the present invention is shown.

[0029] Figure 7 A flow chart of another method for sending configuration data of a network according to an embodiment of the present invention is shown.

[0030] Figure 8 A schematic structural diagram of a control device according to an embodiment of the present invention is shown.

[0031] Fig. 9 A block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0032] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0033] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0034] As described above, the traditional network configuration method requires the configuration parameters of each node in the network to be configured in advance before use. First, the address of the node to be configured must be known before the configuration data can be sent, so that the receiving node can complete the configuration (for example, please refer to Figure 1, taking the EPA network as an example, in the traditional solution, the address of the EPA node device 120-13 needs to be known before the control device 110 can send configuration data to the EPA node device 120-13. The traditional solution cannot send configuration data to the receiving node without knowing the address of the receiving node); and, in the traditional solution, for example, each EPA node in the network 100 can receive its own configuration data, and the control device 110 needs to send configuration data to each EPA node respectively, that is, Figure 1 For example, the control device 110 needs to send a total of 14 data packets to send respective configuration data to these EPA node devices.

[0035] In addition, with the traditional network configuration solution, when a device is added or reduced in the network 100, it is necessary to resend configuration data to each node and then reconfigure the device (for example, Figure 1 There are four EPA node devices 120-11, 120-12, 120-13 and 120-14 in the linear topology. If an EPA node device is added after 120-14, it is necessary to resend configuration data to each node device in the linear topology to reconfigure the configuration).

[0036] In summary, the traditional method for sending configuration data on a network has the disadvantage that the efficiency of sending configuration data is low, which leads to low configuration efficiency.

[0037] In order to at least partially solve one or more of the above-mentioned problems and other potential problems, an example embodiment of the present invention proposes a scheme for sending configuration data of a network. In the scheme of the present invention, at the control device, based on the physical connection relationship of multiple node devices in the network, the node device directly connected to the control device is determined as the first node device, and the topology structure between the multiple node devices is determined; if it is determined that there is a linear or ring topology structure between the first node device and at least some of the multiple node devices, the connection order of the node devices involved in the linear or ring topology structure is determined; based on the determined connection order of the node devices, the configuration parameter groups of each node device in the linear or ring topology structure are arranged in sequence starting from the first node device to generate a configuration data packet; thereby, a configuration data packet can be generated according to the linear or ring topology structure existing in the network and the connection order of the node devices involved in these linear or ring topologies; and multiple configuration parameter groups in a configuration data packet are sorted according to the connection order of their corresponding node devices in the same topology structure. Therefore, one configuration data packet includes multiple configuration parameter groups corresponding to a certain linear or ring topology structure, from the head node device to the tail node device.

[0038] In the scheme of the present invention, the generated configuration data packet also includes a data packet header, which at least indicates the address of the first node device involved in the configuration data packet; and the corresponding configuration data packet is sent to the first node device. Therefore, the present invention enables the control device to send data packets only to the first node among multiple node devices in the same linear or ring topology structure, and based on the physical connection relationship between multiple nodes in the same linear or ring topology structure, the transmission of the configuration data packet from the first node to the last node is realized, so that multiple node devices belonging to the same linear or ring topology structure can receive their own configuration parameters, so that configuration data can be sent to multiple node devices in the network without knowing the physical address of each node device in the network, and there is no need to send configuration data to each node device separately, which improves the efficiency of network configuration data transmission and can improve the configuration efficiency of each node device in the network.

[0039] In the scheme of the present invention, it also includes receiving a configuration data packet from an upper-level device at the current node device, the upper-level device includes a control device, a switch or other node device, the received configuration data packet is an initial configuration data packet, or a configuration data packet updated based on the initial configuration data packet, and the initial configuration data packet is generated by the method provided by the present invention and executed at the control device; the current node device intercepts data related to the current node device from the configuration data packet, so as to update the configuration data packet based on the remaining data in the configuration data packet; and forwarding the updated configuration data packet to the next-level node device directly connected to the current node device, the current node device and the next-level node device are in the same linear or ring topology. Therefore, the present invention enables multiple node devices in the same linear or ring topology in the network to transmit configuration data packets step by step through a physical connection relationship, and as the configuration data packet passes through more nodes, the content contained in it after the update is less, thereby greatly improving the transmission efficiency of configuration parameters.

[0040] Figure 1 FIG. 1 is a schematic diagram of an exemplary network 100 for implementing an embodiment of the present invention. Figure 1 As shown in , the network 100 includes a control device 110, a bus 150, a switch 160 and a plurality of EPA node devices; wherein, Figure 1 The figure shows by way of example four EPA node devices 120-11, 120-12, 120-13 and 120-14 of a linear topology, four EPA node devices 130-21, 130-22, 130-23 and 130-24 of a ring topology, and six EPA node devices 140-31, 140-32, 140-33, 140-41, 140-42 and 140-51 of a star-plus-linear topology.

[0041] Regarding network 100, for example, it is an EPA network. Among them, EPA (Ethernet for Plant Automation) factory automation Ethernet is a real-time Ethernet technology for control systems independently developed by China, which has been included in the field bus international standard IEC61158 and the real-time Ethernet standard IEC61784. At present, EPA has been widely used in many fields such as electricity, chemical industry, machinery, mining, and petroleum. For example, it is used in control systems, data acquisition and monitoring, etc., providing an efficient and reliable communication solution for industrial automation control environments. The EPA network adopts a deterministic communication scheduling control strategy, which solves the uncertainty problem of traditional Ethernet communication and ensures the transmission of real-time data. This feature of the EPA network also prompts the EPA network to configure the configuration parameters of each node in the network in advance before use.

[0042] Regarding the network 100, it is also PROFINET, for example. PROFINET is an open industrial Ethernet communication protocol, mainly proposed by Siemens and PROFIBUS & PROFINET International Association. PROFINET uses TCP / IP and other related standards and is a real-time industrial Ethernet. Since 2003, PROFINET is part of the IEC 61158 and IEC 61784 standards. In addition, since PROFINET is based on Ethernet, it can support star, tree, bus and other topological structures.

[0043] The control device 110 is used to control the EPA node devices, such as configuring each EPA node device in the network 100, and each EPA node device can perform periodic communication according to a specific EPA protocol. The control device 110 can be, for example, a computer, server or server cluster of an enterprise that needs to perform industrial control, and each EPA node device can be a controlled industrial device that supports the EPA function or an external converter that provides the EPA function for a controlled industrial device that does not support the EPA function.

[0044] In addition, the control device 110 can be physically directly connected to one or more EPA node devices via the bus 150 through the EPA network card (for example, it is physically directly connected to the EPA node device 120-11 and the EPA node device 130-21 through the bus 150); the control device 110 can also be directly connected to one or more EPA node devices through the switch 160 (for example, the EPA node device 140-31, the EPA node device 140-41, and the EPA node device 140-51 are physically directly connected to the switch 160, and the switch 160 is physically directly connected to the control device 110 through the bus 150). The control device 110 communicates with one or more EPA node devices and one or more switches in the network 100 through the bus 150. In some embodiments, when the network 100 is an EPA network, the bus 150 is an EPA bus.

[0045] The control device 110 may have one or more processing units, including dedicated processing units such as GPU, FPGA and ASIC, and general processing units such as CPU. In addition, one or more virtual machines may also be running on each control device 110. In some embodiments, please refer to Figure 8 The control device 110 , for example, includes a topology structure identification module 112 , a connection sequence determination module 114 , a configuration data generation module 116 , and a data sending module 118 .

[0046] The topology structure identification module 112 is used to determine the node device directly connected to the control device as the first node device based on the physical connection relationship of multiple node devices in the network, and to determine the topology structure between the multiple node devices.

[0047] The connection sequence determination module 114 is used to determine the connection sequence of the node devices involved in the linear or ring topology in response to determining that a linear or ring topology exists between the first node device and at least some of the multiple node devices.

[0048] Regarding the configuration data generation module 116, it is used to arrange the configuration parameter groups of each node device in a wire type or ring topology structure in sequence starting from the first node device based on the determined connection order of the node devices, so as to generate a configuration data packet; the generated configuration data packet also includes a data packet header, and the data packet header at least indicates the address of the first node device involved in the configuration data packet.

[0049] Regarding the data sending module 118, it is used to send the corresponding configuration data packet to the head node device.

[0050] Regarding the switch 160, for example, it can forward the received configuration data packet to the corresponding head node device, please refer to Figure 4 For example, the control device 110 sends to the switch 160 configuration data packets 430 corresponding to the EPA node devices (140-31→140-32→140-33), configuration data packets 440 corresponding to the EPA node devices (140-41→140-42), and configuration data packets 450 corresponding to the EPA node devices (140-51); the switch 160 forwards the configuration data packets 430 to the EPA node devices 140-31, 440 to the EPA node devices 140-41, and 450 to the EPA node devices 140-51.

[0051] Regarding EPA node devices, any EPA node device in a linear or ring topology in the network 100 can receive a configuration data packet from the control device 110, the switch 160, or other node devices. The received configuration data packet is an initial configuration data packet or a configuration data packet updated based on the initial configuration data packet. Figure 3 The figure illustrates the transmission of configuration data packets between EPA node devices (120-11, 120-12, 120-13 and 120-14) in a linear topology structure, corresponding to the initial configuration data packet 200 of the topology structure, the initial configuration data packet 200 is updated to the configuration data packet 201 by the EPA node device 120-11, the configuration data packet 201 is updated to the configuration data packet 202 by the EPA node device 120-12, and the configuration data packet 202 is updated to the configuration data packet 203 by the EPA node device 120-13.

[0052] In network 100, all node devices in the topological structure involved in each head node constitute a subnetwork system; each EPA node in the subnetwork system uses time division multiplexing to perform periodic communication according to the EPA protocol, that is, under the premise of working on the same time base, a communication cycle of a specified time length is formulated according to the specific application scenario of the subsystem, and the start and end times of the communication cycles of all EPA devices in each subnetwork system are consistent (i.e., cycle synchronization); the communication cycles between different subnetwork systems may not be synchronized. For example, EPA node devices 120-11, 120-12, 120-13 and 120-14 are periodically synchronized, EPA node devices 130-21, 130-22, 130-23 and 130-24 are periodically synchronized; EPA node devices 140-31, 140-32 and 140-33 are periodically synchronized; EPA node devices 140-41 and 140-42 are periodically synchronized; and any two of EPA node devices 120-11, EPA node device 130-21, EPA node device 140-31 and EPA node device 140-41 may be synchronized or not. Regarding the specific process of the control device and EPA node device in the method for sending configuration data for a network provided by the present invention, the following is combined with Figure 5-Figure 8 Further description is not repeated here.

[0053] Figure 5 FIG. 5 is a flow chart of a method 500 for sending configuration data of a network according to an embodiment of the present invention. The method 500 may be performed as follows: Figure 1 The control device 110 shown in FIG. Fig. 9 The method 500 is executed at the electronic device 900. It should be understood that the method 500 may further include additional steps not shown and / or may omit the steps shown, and the scope of the present invention is not limited in this respect.

[0054] In step 502, the control device 110 determines a node device directly connected to the control device as a head node device based on a physical connection relationship among multiple node devices in the network, and determines a topology structure among the multiple node devices.

[0055] In some embodiments, the node device directly connected to the control device includes: a node device that is physically directly connected to the control device, or a node device that is directly connected to the control device via a switch.

[0056] For direct connections, see, for example, Figure 1, the EPA node devices (120-11, 130-21) are physically directly connected to the control device 110 through the bus 150; the EPA node devices (140-31, 140-41, 140-51) are directly connected to the control device 110 through the switch 160, and the switch 160 is physically directly connected to the control device 110 through the bus 150, and the EPA node devices (140-31, 140-41, 140-51) are physically directly connected to the switch 160.

[0057] Regarding the determination of the first node device, continuing with the above example, please refer to Figure 1 The control device 110 determines that the node devices directly connected to the control device include EPA node devices (120-11, 130-21, 140-31, 140-41, 140-51) according to the physical connection relationship of the node devices, and determines the EPA node devices (120-11, 130-21, 140-31, 140-41, 140-51) as the first node devices.

[0058] Regarding the determination of the topology, continuing with the above example, please refer to Figure 1 , the control device 110 determines the topology structure between multiple node devices, EPA node devices 120-11, 120-12, 120-13 and 120-14 are in the same linear topology structure, and the first node device is EPA node device 120-11; EPA node devices 130-21, 130-22, 130-23 and 130-24 are in the same ring topology structure, and the first node device is EPA node device 130-21; EPA node devices 140-31, 140-32 and 140-33 are in the same linear topology structure, and the first node device is EPA node device 140-31; EPA node devices 140-41 and 140-42 are in the same linear topology structure, and the first node device is EPA node device 140-41.

[0059] In step 504, if the control device 110 determines that a linear or ring topology exists between the first node device and at least some of the multiple node devices, the control device 110 determines the connection order of the node devices involved in the linear or ring topology.

[0060] Regarding the connection order of node devices, continuing with the above example, please refer to Figure 1, the control device 110 further determines that the connection order between the EPA node devices (120-11, 120-12, 120-13 and 120-14) in the same linear topology is 120-11→120-12→120-13→120-14; the connection order between the EPA node devices (130-21, 130-22, 130-23 and 130-24) in the same ring topology is 130-21→130-22→130-23→130-24; the connection order between EPA node devices (140-31, 140-32 and 140-33) in the same linear topology is 140-31→140-32→140-33; the connection order between EPA node devices (140-41 and 140-42) in the same linear topology is 140-41→140-42.

[0061] In step 506, the control device 110 arranges the configuration parameter groups of each node device in the line type or ring topology structure in sequence starting from the first node device based on the determined connection order of the node devices, so as to generate a configuration data packet; the generated configuration data packet also includes a data packet header, and the data packet header at least indicates the address of the first node device involved in the configuration data packet.

[0062] For the structure of the configuration data package, see, for example Figure 2a A configuration data packet 200 arranges corresponding configuration parameter groups (120-110, 120-120, 120-130 and 120-140) in a connection sequence (120-11→120-12→120-13→120-14) between EPA node devices (120-11, 120-12, 120-13 and 120-14) in the same linear topology; wherein configuration parameter group 120-110 corresponds to EPA node device 120-11, configuration parameter group 120-120 corresponds to EPA node device 120-12, configuration parameter group 120-130 corresponds to EPA node device 120-13, and configuration parameter group 120-140 corresponds to EPA node device 120-14. Therefore, a configuration data packet contains multiple configuration parameter groups corresponding to a certain linear or ring topology, from the first node device to the last node device.

[0063] In some embodiments, the configuration parameter group of the node device includes: a data length bit, used to indicate the data length of the configuration parameter group; a data check bit, used to indicate the data check value of the configuration parameter group; and a data bit, used to indicate the configuration parameter data of the node device corresponding to the configuration parameter group.

[0064] For the structure of the configuration parameter groups, see, for example Figure 2a and Figure 3 When the EPA node device 120-11 receives its corresponding configuration parameter group 120-110, it can determine the data length of the configuration parameter group that the current node device (EPA node device 120-11) needs to intercept from the configuration parameter group based on the data length bit 120-1101 of the read configuration parameter group 120-110, thereby intercepting the configuration data related to itself.

[0065] In some embodiments, the configuration parameter group for arranging each node device in the linear or ring topology in sequence starting from the first node device includes: determining the configuration parameter group for arranging each node device in the linear or ring topology in sequence ...

[0066] For example, please refer to Figure 4 , configuration data packet 430, corresponds to the EPA node devices (140-31, 140-32 and 140-33) in the same linear topology. The data packets of each node in the topology are read in positive order (from left to right), and the configuration parameter groups (140-310, 140-320 and 140-330) corresponding to each node are arranged in positive order (from left to right) according to the connection order of the node devices (140-31→140-32→140-33).

[0067] For another example, please refer to Figure 4 , the configuration data packet 440 corresponds to the EPA node devices (140-41, 140-42) in the same linear topology structure. The data packets of each node in the topology structure are read in reverse order (from right to left). The data packet header 140-40 and the configuration parameter groups (140-410 and 140-420) corresponding to each node are arranged in reverse order (from right to left) according to the connection order of the node devices (140-41→140-42).

[0068] Please refer to Figure 1, there may be two connection sequences between EPA node devices (130-21, 130-22, 130-23 and 130-24) in the same ring topology, clockwise connection (130-21→130-22→130-23→130-24), or counterclockwise connection (130-21→130-24→130-23→130-22). In this solution, the clockwise connection of the ring topology is called the positive sequence, and the counterclockwise connection is called the reverse sequence. For example, the configuration parameter groups corresponding to the EPA node devices (130-21, 130-22, 130-23 and 130-24) are (130-210, 130-220, 130-230 and 130-240) respectively, and the data packet header received by the EPA node device 130-21 is 130-0.

[0069] Regarding the reading method being in positive order, for example, when the EPA node devices (130-21, 130-22, 130-23 and 130-24) in the same ring topology are connected clockwise (in positive order), the configuration parameter groups (130-210, 130-220, 130-230 and 130-240) corresponding to each node are arranged in positive order (from left to right) according to the connection order of the node devices (130-21→130-22→130-23→130-24), and each node in the ring topology reads the received data packets from left to right in positive order.

[0070] Regarding the reverse reading method, for example, when the EPA node devices (130-21, 130-22, 130-23 and 130-24) in the same ring topology are connected counterclockwise (in reverse order), the configuration parameter groups (130-210, 130-240, 130-230 and 130-220) corresponding to each node are arranged in reverse order (from right to left) according to the connection order of the node devices (130-21→130-24→130-23→130-22), and each node in the ring topology reads the received data packets from left to right in reverse order.

[0071] The data length bit is read by the node device before the data bit. For example, please refer to Figure 2a , illustrates the specific structure of the configuration parameter group 120-110 in the forward reading mode of the data packet, the configuration data packet 200 is forward read by the node device, Figure 2aThe configuration parameter group 120-110 shown in the figure has a reading order of ① data length bit 120-1101, ② data check bit 120-1102, and ③ data bit 120-1103; in some embodiments, the data length bit is read by the node device before the data bit, and the structure of the configuration parameter group 120-110 can also be ① data check bit 120-1102, ② data length bit 120-1101, and ③ data bit 120-1103. In other words, when the reading method is forward, there are multiple ways to arrange the data length bit, data check bit, and data bit in the configuration parameter group, including from left to right "data length bit-data check bit-data bit", "data check bit-data length bit-data bit" and "data length bit-data bit-data check bit".

[0072] For example, see Figure 4 Configuration data packet 440 illustrates a configuration data packet structure in a reverse order (from right to left) reading mode. The configuration parameter groups in configuration data packet 440 are arranged from right to left (data packet header—configuration parameter group 140-410—configuration parameter group 140-420), which is exactly opposite to the connection order of EPA node devices 140-41 and 140-42 in the online topology structure.

[0073] In step 508, the control device 110 sends a corresponding configuration data packet to the head node device.

[0074] In some embodiments, sending a corresponding configuration data packet to the first-node device includes: if it is confirmed that there are multiple first-node devices directly connected to the switch, sending multiple configuration data packets to the switch, each of the multiple configuration data packets corresponding to a first-node device directly connected to the switch; and forwarding the corresponding configuration data packet to each first-node device directly connected thereto via the switch.

[0075] For example, see Figure 4 , the control device 110 sends to the switch 160 configuration data packets 430 corresponding to the EPA node devices (140-31→140-32→140-33), configuration data packets 440 corresponding to the EPA node devices (140-41→140-42), and configuration data packets 450 corresponding to the EPA node devices (140-51); the switch 160 forwards the configuration data packets 430 to the EPA node device 140-31, the configuration data packets 440 to the EPA node device 140-41, and the configuration data packets 450 to the EPA node device 140-51; among them, the EPA node device 140-31, the EPA node device 140-41, and the EPA node device 140-41 are all head nodes.

[0076] In the above scheme, the control device can determine the first node device that has a direct connection relationship with the control device through the physical connection relationship between the devices, and determine the topology structure between multiple nodes in the network. If it is determined that there is a linear or ring topology structure between the first node device and at least some of the multiple node devices, the connection order of the node devices involved in the linear or ring topology structure is determined; thereby, according to the connection order of the node devices in the linear or ring topology structure, a configuration data packet containing the configuration parameters of all node devices in a linear or ring topology structure and sorted in the connection order is generated; so that multiple node devices in the same linear or ring topology structure can share a configuration data packet.

[0077] It is worth noting that in the above scheme, the control device can send data packets only to the head node of multiple node devices in the same linear or ring topology. Based on the physical connection relationship between multiple nodes in the same linear or ring topology, the configuration data packet can be transmitted from the head node to the tail node, so that multiple node devices belonging to the same linear or ring topology can receive their respective configuration parameters. It is not necessary to know the physical address of each node device in the network, and it is not necessary to send configuration data to each node device separately, which improves the network's configuration data transmission efficiency and can improve the configuration configuration efficiency of each node device in the network.

[0078] Figure 6 FIG. 6 is a flow chart of a method 600 for resending configuration parameters according to an embodiment of the present invention. The method 600 may be performed as follows: Figure 1 The control device 110 shown in FIG. Fig. 9 The method 600 is executed at the electronic device 900. It should be understood that the method 600 may further include additional steps not shown and / or may omit the steps shown, and the scope of the present invention is not limited in this respect.

[0079] In step 602, if the control device 110 determines that the configuration parameter group in the configuration data packet is not received normally, the control device 110 determines the number and location of the node devices that have not received the configuration parameter group normally.

[0080] Regarding the failure to receive the configuration parameter group normally, it includes, for example, that the received data cannot pass the data verification, and the node device fails to feedback the configuration information for more than a predetermined time.

[0081] For example, see Figure 3, the EPA node devices (120-11, 120-12, 120-13, 120-14) receive the configuration parameters respectively, and after receiving the data packet, intercept the data related to themselves, and then configure the configuration information of the current node, and send the current configuration information of the node device to the control device 110 within the predetermined time.

[0082] Regarding the method of data verification, the EPA node device obtains the configuration parameter group of the current node device based on the intercepted data related to the current node device; parses the obtained configuration parameter group to obtain the data verification value and configuration parameter data about the current node device; calculates the received data verification value based on the obtained configuration parameter data via a predetermined verification algorithm; in response to determining that the calculated received data verification value does not match the obtained data verification value, determines that the current node device has not normally received the configuration parameter group; and feeds back to the control device 110 through the network that the current node device has not normally received the configuration parameter group.

[0083] For example, when the data verification method is CRC (Cyclic Redundancy Check), the EPA node device 120-11 obtains the data verification value (such as the first CRC verification value) from the data verification bit 120-1102 in the configuration parameter group 120-110; the EPA node device 120-11 obtains the configuration parameter data from the data bit 120-1103 in the configuration parameter group 120-110, and calculates the received data verification value (such as the second CRC verification value) of the EPA node device 120-11 based on the obtained configuration parameter data and a predetermined verification algorithm (such as a CRC algorithm); compares the first CRC verification value and the second CRC verification value, if the two match, the verification passes, if the two do not match, the verification fails; if the verification fails, it is determined that the current node device (such as the EPA node device 120-11) has not received the configuration parameter group normally. In step 604, the control device 110 compares the total data length of the retransmitted configuration data packets in the single-point retransmission mode and the total data length of the retransmitted configuration data packets in the multi-point retransmission mode based on the number and location of the node devices that have not normally received the configuration parameter group.

[0084] Regarding the single-point retransmission mode, in the single-point retransmission mode, a single-point retransmission configuration data packet is sent separately to each node device that has not normally received the configuration parameter group. The single-point retransmission configuration data packet includes: a data packet header and a configuration parameter group corresponding to the receiving node device; and based on the sum of the data lengths of each single-point retransmission configuration data packet, the total data length of the retransmission configuration data packet in the single-point retransmission mode is calculated.

[0085] For example, Figure 3For example, EPA node devices 120-13 and 120-14 do not receive the configuration parameter group normally. In the single-point retransmission mode, the control device 110 sends a configuration data packet D1 (D1 data packet header + configuration parameter group of EPA node device 120-13) to EPA node device 120-13, and also sends a configuration data packet D2 (D2 data packet header + configuration parameter group of EPA node device 120-14) to EPA node device 120-14; wherein the D1 data packet header points to the address of EPA node device 120-13, and the D2 data packet header points to the address of EPA node device 120-14. In the single-point retransmission mode, the total data length L of the retransmitted configuration data packet is DA =L D1 + L D2 (L D1 The total length of the data in the configuration data packet D1, L D2 is the sum of the data lengths of the configuration data packet D2).

[0086] Regarding the multi-point retransmission mode, in the multi-point retransmission mode, a multi-point retransmission configuration data packet is sent to a node device that is closest to a first node device among multiple node devices that have not normally received the configuration parameter group. The multi-point retransmission configuration data packet includes: a data packet header corresponding to the receiving node device and multiple configuration parameter groups. The multiple configuration parameter groups correspond to multiple node devices that have not normally received the configuration parameter group, and are arranged in sequence according to the connection order of the node devices in the linear or ring topology structure; based on the data length of the multi-point retransmission configuration data packet, the total data length of the retransmission configuration data packet in the multi-point retransmission mode is calculated.

[0087] Continuing with the above example, in the multi-point retransmission mode, the control device 110 sends a configuration data packet Dz (Dz data packet header + configuration parameter group of EPA node device 120-13 + configuration parameter group of EPA node device 120-14) to the EPA node device 120-13, where the Dz data packet header points to the address of the EPA node device 120-13. In the multi-point retransmission mode, the total data length L of the retransmitted configuration data packet is DB =L Dz (L Dz is the total data length of the configuration data packets Dz).

[0088] In step 606, the control device 110 generates a retransmission configuration data packet in a retransmission manner with a smaller total data length based on the comparison result, so as to retransmit the configuration parameter group.

[0089] Continuing with the above example, compare L DA and L DB , for example, L DAIf the data length is small, the configuration data is resent to the EPA node devices 120-13 and 120-14 in a single-point resending manner. DB If the data length is small, the configuration data is retransmitted to the EPA node devices 120-13 and 120-14 in a multi-point retransmission manner; in this case, the control device 110 only needs to send the configuration data packet Dz generated by the multi-point retransmission to the EPA node device 120-13. After the EPA node device 120-13 intercepts the part related to itself, it updates the configuration data packet Dz based on the remaining data and sends the updated configuration data packet Dz to the EPA node device 120-14.

[0090] In some embodiments, if there are still node devices that fail to normally receive the configuration parameter group after more than a predetermined number of retransmissions, an error is reported to the user via the control device.

[0091] In the above scheme, the control device can calculate and compare the data lengths of the retransmission modes, and select a retransmission mode with a smaller data length to complete the retransmission of the configuration parameters, so as to further improve the transmission efficiency of the configuration parameters. Figure 7 FIG. 7 is a flow chart of another method 700 for sending configuration data of a network according to an embodiment of the present invention. The method 700 may be performed as follows: Figure 1 The EPA node device shown is executed, and can also be Fig. 9 The method 700 is executed at the electronic device 900 shown. It should be understood that the method 700 may further include additional steps not shown and / or may omit the steps shown, and the scope of the present invention is not limited in this respect.

[0092] In step 702, the EPA node device receives a configuration data packet from an upper-level device, which includes a control device, a switch or other node device. The received configuration data packet is an initial configuration data packet, or a configuration data packet updated based on the initial configuration data packet. The initial configuration data packet is generated according to any method executed by the control device in an embodiment of the present invention.

[0093] For example, see Figure 1 The upper-level device of the EPA node device 120 - 11 is the control device 110 , the upper-level device of the EPA node device 120 - 12 is the EPA node device 120 - 11 , and the upper-level device of the EPA node device 140 - 31 is the switch 160 .

[0094] For another example, when the upper-level device is the control device 110 or the switch 160, the configuration data packet received by the current node device is the initial configuration data packet; Figure 3 , the configuration data packet 200 received by the EPA node device 120-11 is an initial configuration data packet; as shown in FIG. Figure 4 The configuration data packet 430 received by the EPA node device 140 - 31 is an initial configuration data packet.

[0095] For another example, when the upper-level device is another node device, the configuration data packet received by the current node device is a configuration data packet updated based on the initial configuration data packet. Figure 3 The configuration data packets (201, 202, 203) respectively received by the EPA node devices (120-12, 120-13, 120-14) are all obtained by gradually updating the configuration data packet 200.

[0096] In step 704, the EPA node device intercepts data related to the current node device from the configuration data packet, so as to update the configuration data packet based on the remaining data in the configuration data packet.

[0097] For example, see Figure 3 , EPA node device 120-11 receives configuration data packet 200, intercepts data related to itself (data packet header 120-0 and configuration parameter group 120-110), and updates the configuration data packet based on the remaining data in the configuration data packet (configuration parameter group 120-120, configuration parameter group 120-130, configuration parameter group 120-140) to obtain an updated configuration data packet 201; EPA node device 120-12 receives configuration data packet 201, intercepts data related to itself (configuration After receiving the configuration data packet 202 and intercepting the data related to itself (configuration parameter groups 120-130), the EPA node device 120-13 updates the configuration data packet based on the remaining data (configuration parameter groups 120-140) in the configuration data packet to obtain an updated configuration data packet 203.

[0098] In step 706, the EPA node device forwards the updated configuration data packet to the next-level node device directly connected to the current node device. The current node device and the next-level node device are in the same linear or ring topology.

[0099] In some embodiments, multiple node devices in the linear or ring topology structure forward updated configuration data packets to the next-level node devices in sequence from the first node device to the last node device based on the connection order of the node devices, until the data in the initial configuration data packet is completely intercepted or there is no next-level node device; and the first node device has a direct physical connection with the control device, or is directly connected to the control device via a switch.

[0100] Continuing the above example, EPA node device 120-11 sends the updated configuration data packet 201 to the next-level node device EPA node device 120-12; EPA node device 120-12 sends the updated configuration data packet 202 to the next-level node device EPA node device 120-13; EPA node device 120-13 sends the updated configuration data packet 203 to the next-level node device EPA node device 120-14; EPA node device 120-14 has no next-level node device. It is worth noting that please refer to Figure 1 ,In the ring topology, the EPA node devices transmit configuration data packets unidirectionally, ,clockwise or counterclockwise., ,For example, the EPA node devices (130-21, 130-22, 130-23, 130-24) determine the forwarding order of the configuration data packets between ,node devices based on a predetermined setting. The generation of the configuration data packets is ,also determined based on the connection order (forwarding order).

[0101] In the above method, any node device in the network receives a configuration data packet from the upper-level device based on the linear or ring topology structure in which it is located and the connection relationship between itself and the upper-level device, and intercepts data related to itself from the received configuration data packet, updates the configuration data packet based on the remaining data, and forwards the updated configuration data packet to the lower-level node device based on the connection relationship between itself and the lower-level node device; it enables multiple node devices in the same linear or ring topology structure in the network to pass the configuration data packet step by step through the physical connection relationship, and as the configuration data packet passes through more nodes, the content contained in it after the update is less, thereby greatly improving the transmission efficiency of the configuration parameters. In addition, each node device only needs to process the data related to itself, and does not need to process all the received data, which simplifies the data processing logic of the node, reduces the computing burden, and improves the efficiency of the node device in obtaining the configuration parameters.

[0102] In addition, the configuration data packets transmitted between multiple node devices in the same topology only need to share a data packet header (only indicating the first node address), and each node only intercepts the data required by the current node, and the remaining data is directly forwarded to the next node device, reducing data processing logic, reducing data processing time, and improving data transmission efficiency. A configuration data packet includes the configuration information of multiple node devices. By gradually reducing the amount of transmitted data during update and forwarding, the amount of data that each node needs to process and forward is reduced, reducing the overall bandwidth load.

[0103] In some embodiments, intercepting data related to the current node device from the configuration data packet includes: reading the configuration data packet in forward or reverse order based on a predetermined data packet reading method; if it is determined that the current node device is a first node device, intercepting the data packet header from the configuration data packet, and the first node device is physically directly connected to the control device, or is directly connected to the control device via a switch; and based on the first data length bit read, determining the data length of the configuration parameter group related to the current node device in the configuration data packet, so as to intercept the configuration parameter group related to the current node device.

[0104] For example, see Figure 2a and Figure 3 , the reading method of the EPA node devices (120-11, 120-12, 120-13 and 120-14) is all in positive order (from left to right); the configuration data packet 200 includes a data packet header 120-0 indicating the address of the first node device (i.e., the EPA node device 120-11), and the control device 110 sends the configuration data packet 200 to the EPA node device 120-11. After receiving the configuration data packet 200, the EPA node device 120-11 reads the configuration data packet 200 from left to right based on the positive order reading method, intercepts the content related to itself (intercepts the data packet header 120-0 and the configuration parameter group 120-110), updates the configuration data packet 201 based on the remaining content in the configuration data packet, and sends the updated configuration data packet 201 to the EPA node device 120-12 based on the connection relationship between the nodes.

[0105] Continuing with the above example, the configuration parameter groups in the configuration data packet 200 are arranged in positive order corresponding to the sequential order of the node devices. For example, the structures of these configuration parameter groups are all "data length bit-data check bit-data bit" in positive order. When the EPA node device 120-11 reads the configuration data packet 200 in positive order, the first data length bit read is "data length bit 120-1101", thereby determining the data length it needs to intercept, and thus intercepting the configuration parameter group 120-110 in the received configuration data packet 200 to perform its own configuration parameter configuration.

[0106] For another example, see Figure 2b, illustrates a configuration data packet 220, which is read in positive order (from left to right). For example, an EPA node device β receives the configuration data packet 220. According to the preset reading method, the configuration parameter group is arranged as "data length bit (1 byte)-data check bit (1 byte)-data bit". Therefore, the EPA node device β performs positive reading, first reads the first byte to obtain "0x5d" to determine that the total data length bit of the configuration parameter group related to the EPA node device β is 93 bytes, and then reads the second section to obtain the data check value "0x3A" (for example, a CRC check value). According to the data length of 93 bytes, the EPA node device β intercepts 93 bytes of data from left to right, and updates the configuration data packet according to the remaining data and sends it to the next-level node; in the 93 bytes of data intercepted from left to right by the EPA node device β, the bytes corresponding to the data length bit and the data check bit are removed, and the remaining 91 bytes contain the configuration parameter data of the EPA node device β. It should be understood that the data length bit can also be read as 2 bytes, 3 bytes or more, and the data check bit can also be 2 bytes, 3 bytes or more.

[0107] In the above scheme, based on the reading method of the data packet in forward order or reverse order, the configuration parameter group is arranged in the corresponding order when the configuration data packet is generated, and the data structure in the configuration parameter group is arranged in the corresponding order, so that the acquisition of configuration parameters is more flexible to adapt to different network requirements. Fig. 9 Schematic diagram of an example electronic device 900 that can be used to implement an embodiment of the present specification is shown. Figure 1 The control device 110 shown can be implemented by an electronic device 900. As shown, the electronic device 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 902 or computer program instructions loaded from a storage unit 908 to a random access memory (RAM) 903. In the random access memory 903, various programs and data required for the operation of the electronic device 900 can also be stored. The central processing unit 901, the read-only memory 902, and the random access memory 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0108] Multiple components in the electronic device 900 are connected to the input / output interface 905, including: an input unit 906, such as a keyboard, a mouse, a microphone, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0109] The various processes and processing described above, such as methods 500 to 700, may be performed by the central processing unit 901. For example, in some embodiments, methods 500 to 700 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the read-only memory 902 and / or the communication unit 909. When the computer program is loaded into the random access memory 903 and executed by the central processing unit 901, one or more actions of the methods 500 to 700 described above may be performed.

[0110] The present invention relates to methods, apparatuses, systems, electronic devices, computer-readable storage media and / or computer program products. The computer program products may include computer-readable program instructions for executing various aspects of the present invention.

[0111] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (a non-exhaustive list) of computer-readable storage media include: 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), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0112] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge computing devices. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.

[0113] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, the electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be executed by using the state information of the computer-readable program instructions to personalize and customize the electronic circuit, thereby implementing various aspects of the present invention.

[0114] Various aspects of the present invention are described herein with reference to flow charts and / or step diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each of the steps in the flow charts and / or step diagrams and the combination of the steps in the flow charts and / or step diagrams can be implemented by computer-readable program instructions.

[0115] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more steps in the flowchart and / or step diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more steps in the flowchart and / or step diagram.

[0116] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more steps in the flowchart and / or step diagram.

[0117] The flowchart and step diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to multiple embodiments of the present invention. In this regard, each square step in the flowchart or step diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the square steps can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive square steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square step in the step diagram and / or the flowchart, and the combination of the square steps in the step diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0118] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for sending configuration data of a network, characterized in that: include: At the control device, based on the physical connection relationship of multiple node devices in the network, determining a node device directly connected to the control device as a head node device, and determining a topological structure between the multiple node devices; In response to determining that a linear or ring topology exists between the first node device and at least some of the multiple node devices, determining a connection order of the node devices involved in the linear or ring topology; Based on the determined connection sequence of the node devices and the data packet reading method, arranging the configuration parameter groups of the node devices in the linear or ring topology in sequence starting from the first node device, so as to generate a configuration data packet; The configuration parameter group of the node device includes: a data length bit, used to indicate the data length of the configuration parameter group; The generated configuration data packet further includes a data packet header, wherein the data packet header at least indicates an address of a head node device involved in the configuration data packet; and Send the corresponding configuration data packet to the head node device.

2. The method according to claim 1, characterized in that The node device directly connected to the control device includes: a node device that is physically directly connected to the control device, or a node device that is directly connected to the control device via a switch.

3. The method according to claim 2, characterized in that Sending a corresponding configuration data packet to the first node device includes: In response to confirming that there are multiple head-node devices directly connected to the switch, sending multiple configuration data packets to the switch, each of the multiple configuration data packets corresponding to a head-node device directly connected to the switch; and The corresponding configuration data packet is forwarded to each head node device directly connected thereto via the switch.

4. The method according to claim 1, characterized in that: The configuration parameter group of the node device also includes: Data check bit, used to indicate the data check value of the configuration parameter group; Data bit, used to indicate the configuration parameter data of the node device corresponding to the configuration parameter group.

5. The method according to claim 4, characterized in that The configuration parameter group of each node device in the linear or ring topology structure arranged in sequence starting from the first node device includes: Based on whether the data packet reading mode of each node device in the linear or ring topology is positive sequence or reverse sequence, determine to arrange the configuration parameter groups of each node device in the linear or ring topology in positive sequence or reverse sequence starting from the first node device; and The positions of the data length bit and the data bit in the configuration parameter group are determined so that the data length bit is read by the node device before the data bit.

6. The method according to claim 4, characterized in that Also includes: In response to determining that the configuration parameter group in the configuration data packet is not normally received, determining the number and location of the node devices that do not normally receive the configuration parameter group; Based on the number and location of the node devices that did not normally receive the configuration parameter group, compare: the total data length of the retransmitted configuration data packet in the single-point retransmission mode and the total data length of the retransmitted configuration data packet in the multi-point retransmission mode; as well as Based on the comparison result, a retransmission configuration data packet is generated in a retransmission mode with a smaller total data length, so as to retransmit the configuration parameter group.

7. The method according to claim 6, characterized in that Also includes: In the single-point retransmission mode, a single-point retransmission configuration data packet is sent to each node device that does not normally receive the configuration parameter group, and the single-point retransmission configuration data packet includes: a data packet header corresponding to the receiving node device and the configuration parameter group; as well as Based on the sum of the data lengths of the single-point retransmission configuration data packets, the total data length of the retransmission configuration data packets in the single-point retransmission mode is calculated.

8. The method according to claim 6, characterized in that Also includes: In a multi-point retransmission mode, a multi-point retransmission configuration data packet is sent to a node device that is closest to a first node device among a plurality of node devices that have not received a configuration parameter group normally, wherein the multi-point retransmission configuration data packet includes: a data packet header corresponding to the receiving node device and a plurality of configuration parameter groups, wherein the plurality of configuration parameter groups correspond to the plurality of node devices that have not received the configuration parameter group normally, and are arranged in sequence according to the connection order of the node devices in a line or ring topology structure; Based on the data length of the multipoint retransmission configuration data packet, the total data length of the retransmission configuration data packet in the multipoint retransmission mode is calculated.

9. A method for sending configuration data of a network, characterized in that: include: At the current node device, receiving a configuration data packet from an upper-level device, the upper-level device including a control device, a switch or other node device, the received configuration data packet is an initial configuration data packet, or a configuration data packet updated based on the initial configuration data packet, the initial configuration data packet is generated according to any one of the methods of claims 1-8; Based on a predetermined data packet reading mode, the configuration data packet is read in forward or reverse order to read a data length bit, so as to intercept data related to the current node device from the configuration data packet, so as to update the configuration data packet based on the remaining data in the configuration data packet; the data length bit is used to indicate the data length of the configuration parameter group; and The updated configuration data packet is forwarded to a next-level node device directly connected to the current node device, wherein the current node device and the next-level node device are in the same linear or ring topology.

10. The method according to claim 9, characterized in that The data related to the current node device intercepted from the configuration data packet includes: In response to determining that the current node device is a head node device, intercepting a data packet header from the configuration data packet, the head node device being physically directly connected to the control device, or being directly connected to the control device via a switch; and Based on the read first data length bit, the data length of the configuration parameter group related to the current node device in the configuration data packet is determined so as to intercept the configuration parameter group related to the current node device.

11. The method according to claim 10, characterized in that Also includes: Based on the intercepted data related to the current node device, obtain the configuration parameter group of the current node device; Parse the acquired configuration parameter group to obtain the data check value and configuration parameter data of the current node device; Based on the acquired configuration parameter data, a received data check value is calculated via a predetermined check algorithm; In response to determining that the calculated received data check value does not match the acquired data check value, determining that the current node device does not normally receive the configuration parameter group; as well as Feedback is given to the control device through the network that the current node device has not normally received the configuration parameter group.

12. The method according to claim 9, characterized in that Also includes: The multiple node devices in the linear or ring topology structure forward the updated configuration data packet to the next-level node device in sequence from the first node device to the last node device based on the connection order of the node devices, until all the data in the initial configuration data packet is intercepted or there is no next-level node device; and The head node device is directly physically connected to the control device, or is directly connected to the control device via a switch.

13. A computing device, characterized in that: include: at least one processing unit; At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the device to perform the steps of the method according to any one of claims 1 to 12.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a machine, the method according to any one of claims 1 to 12 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a machine, the method according to any one of claims 1 to 12 is performed.

Citation Information

Patent Citations

  • Method for configuration of EPA network, control device and storage medium

    CN117478501A