Data transmission method, node, industrial network and storage medium

CN120675956BActive Publication Date: 2026-10-09SHENZHEN INOVANCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510949103.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2026-10-09
Estimated Expiration
2045-07-10

AI Technical Summary

Technical Problem

[0003]在现有的工业网络中,通常会采用统一的子时隙的划分方式,所有子时隙必须按照最大的固定带宽进行划分,导致子时隙所需要的固定带宽非常大,造成了严重的带宽浪费

Benefits of technology

[0024] The aforementioned data transmission method, nodes, industrial network, and storage medium, applied to the master node, include: determining multiple sub-cycles and the service data streams transmitted within each sub-cycle based on data transmission parameters; wherein the data transmission parameters include: the communication cycles corresponding to the various service data streams and the data size of each service data stream; determining the transmission period indication information for deterministic data within each sub-cycle based on the service data streams transmitted within each sub-cycle, thereby obtaining the transmission period indication information for deterministic data within multiple sub-cycles; and sending the transmission period indication information for deterministic data within multiple sub-cycles to each slave node; wherein the transmission period indication information is used for the transmission of deterministic data. Through this scheme, based on the communication cycles and data size corresponding to various service data streams, sub-cycles and the service data streams transmitted within each sub-cycle are determined, thereby clarifying the transmission period indication information for deterministic data within each sub-cycle and sending it to the slave nodes. In this way, the fixed and coarse unified sub-time slot allocation mode is abandoned, and the transmission time slot is flexibly allocated according to the actual needs of the business data flow. Thus, the transmission time slots allocated in each sub-cycle can be the same or different, thereby avoiding the bandwidth waste caused by using the maximum fixed bandwidth allocation, realizing the efficient use of network bandwidth resources, and effectively meeting the requirements of multiple communication cycle nodes and business data flow co-transmission in complex industrial network application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675956B_ABST
    Figure CN120675956B_ABST
Patent Text Reader

Abstract

The application relates to a data transmission method, a node, an industrial network and a storage medium. The method comprises the following steps: determining a plurality of sub-periods and a service data stream transmitted in each sub-period according to data transmission parameters; wherein the data transmission parameters comprise a communication period corresponding to a plurality of service data streams and a data size of each service data stream; determining transmission period indication information of deterministic data in each sub-period according to the service data stream transmitted in each sub-period, so as to obtain transmission period indication information of deterministic data in the plurality of sub-periods; and transmitting the transmission period indication information of deterministic data in the plurality of sub-periods to each slave node; wherein the transmission period indication information is used for transmission of the deterministic data. The method disclosed by the application can reduce bandwidth waste.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a data transmission method, node, industrial network, and storage medium. Background Technology

[0002] In the field of industrial wired real-time communication, there are nodes and services with different real-time requirements. The common network transmission of data streams from nodes with different communication cycle requirements and services with different communication cycle requirements in the same network is an important requirement to meet the complex application scenarios of current industrial networks.

[0003] In existing industrial networks, a uniform method for dividing sub-time slots is usually adopted. All sub-time slots must be divided according to the maximum fixed bandwidth, which results in a very large fixed bandwidth required for sub-time slots, causing serious bandwidth waste. Summary of the Invention

[0004] Therefore, it is necessary to provide a data transmission method, node, industrial network, and storage medium that can reduce bandwidth waste in response to the above-mentioned technical problems.

[0005] In a first aspect, this application provides a data transmission method applied to a master node, the method comprising:

[0006] Based on the data transmission parameters, multiple sub-cycles are determined, as well as the service data streams sent within each sub-cycle; wherein, the data transmission parameters include: the communication cycle corresponding to the various service data streams, and the data volume of each service data stream;

[0007] Based on the service data stream sent in each sub-cycle, determine the transmission period indication information of the deterministic data in each sub-cycle to obtain the transmission period indication information of the deterministic data in the multiple sub-cycles;

[0008] The transmission period indication information of the deterministic data within the multiple sub-cycles is sent to each slave node; wherein, the transmission period indication information is used to transmit the deterministic data.

[0009] Secondly, this application provides a data transmission method applied to a slave node, including:

[0010] The system receives transmission period indication information for deterministic data within the plurality of sub-cycles. This transmission period indication information is used for transmitting deterministic data. The transmission period indication information for deterministic data within the plurality of sub-cycles is determined based on the service data streams sent within each sub-cycle. The service data streams sent within each sub-cycle and the plurality of sub-cycles are determined based on data transmission parameters, wherein the data transmission parameters include: the communication cycle corresponding to the plurality of service data streams and the data size of each service data stream.

[0011] Data transmission is performed based on the transmission time period indication information of deterministic data within the multiple sub-cycles.

[0012] Thirdly, this application also provides a master node, including a memory, a transceiver, and a processor:

[0013] A memory for storing computer programs; a transceiver for sending and receiving data under the control of a processor; and a processor for reading the computer programs from the memory and executing the method described in the first aspect.

[0014] Fourthly, this application also provides a slave node, including a memory, a transceiver, and a processor:

[0015] A memory for storing computer programs; a transceiver for sending and receiving data under the control of a processor; and a processor for reading the computer programs from the memory and executing the method described in the second aspect.

[0016] Fifthly, this application also provides a master node, including:

[0017] The determination module is used to determine multiple sub-cycles and the service data streams sent within each sub-cycle based on data transmission parameters; wherein, the data transmission parameters include: the communication cycle corresponding to the multiple service data streams and the data volume of each service data stream; and to determine the transmission period indication information of deterministic data within each sub-cycle based on the service data streams sent within each sub-cycle, so as to obtain the transmission period indication information of deterministic data within the multiple sub-cycles.

[0018] The sending module is used to send the transmission period indication information of the deterministic data within the multiple sub-cycles to each slave node; wherein, the transmission period indication information is used to transmit the deterministic data.

[0019] Sixthly, this application also provides a slave node, including:

[0020] A receiving module is configured to receive transmission period indication information for deterministic data within the plurality of sub-cycles. The transmission period indication information is used for transmitting deterministic data. The transmission period indication information for deterministic data within the plurality of sub-cycles is determined based on the service data streams sent within each sub-cycle. The service data streams sent within each sub-cycle and the plurality of sub-cycles are determined based on data transmission parameters, wherein the data transmission parameters include: the communication cycle corresponding to the plurality of service data streams, and the data size of each service data stream.

[0021] The transmission module is used to transmit data based on the transmission period indication information of the deterministic data within the multiple sub-cycles.

[0022] In a seventh aspect, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first or second aspect.

[0023] Eighthly, this application also provides a computer program product comprising a computer program that, when executed by a processor, implements the method described in the first or second aspect.

[0024] The aforementioned data transmission method, nodes, industrial network, and storage medium, applied to the master node, include: determining multiple sub-cycles and the service data streams transmitted within each sub-cycle based on data transmission parameters; wherein the data transmission parameters include: the communication cycles corresponding to the various service data streams and the data size of each service data stream; determining the transmission period indication information for deterministic data within each sub-cycle based on the service data streams transmitted within each sub-cycle, thereby obtaining the transmission period indication information for deterministic data within multiple sub-cycles; and sending the transmission period indication information for deterministic data within multiple sub-cycles to each slave node; wherein the transmission period indication information is used for the transmission of deterministic data. Through this scheme, based on the communication cycles and data size corresponding to various service data streams, sub-cycles and the service data streams transmitted within each sub-cycle are determined, thereby clarifying the transmission period indication information for deterministic data within each sub-cycle and sending it to the slave nodes. In this way, the fixed and coarse unified sub-time slot allocation mode is abandoned, and the transmission time slot is flexibly allocated according to the actual needs of the business data flow. Thus, the transmission time slots allocated in each sub-cycle can be the same or different, thereby avoiding the bandwidth waste caused by using the maximum fixed bandwidth allocation, realizing the efficient use of network bandwidth resources, and effectively meeting the requirements of multiple communication cycle nodes and business data flow co-transmission in complex industrial network application scenarios. Attached Figure Description

[0025] Figure 1 This is a flowchart illustrating a data transmission method.

[0026] Figure 2 A schematic diagram of an industrial network for real-time communication, where nodes with different communication cycle requirements are mixed and networked.

[0027] Figure 3 As a kind of based Figure 2 A table illustrating the data transmission parameters of an industrial network;

[0028] Figure 4 This is a schematic diagram of a business data stream transmission.

[0029] Figure 5 A schematic diagram of bandwidth division for sub-cycles;

[0030] Figure 6 This is a flowchart illustrating a data transmission method that includes a correctness verification process.

[0031] Figure 7 A schematic diagram of the structure of a node in an industrial network provided in one embodiment;

[0032] Figure 8 A structural block diagram of a master node provided in one embodiment;

[0033] Figure 9 A block diagram of a slave node provided in one embodiment. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0035] In this embodiment of the invention, the term "and / or" describes the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The character " / " generally indicates that the preceding and following associated objects have an "or" relationship.

[0036] In the field of industrial wired real-time communication, there are nodes and services with different real-time requirements, such as milliseconds and microseconds. Meeting the critical needs of complex industrial network application scenarios when transmitting data streams from nodes with different communication cycle requirements and services with different communication cycle requirements on the same network is crucial. Related technologies often employ a unified sub-timeslot allocation method. This method requires all sub-timeslots to be divided according to the largest fixed bandwidth sub-cycle and does not support the split transmission of large data volumes. This results in a very large fixed bandwidth required for each sub-cycle, and the unified sub-timeslot across the entire network leads to significant bandwidth waste.

[0037] To address the aforementioned issues, this application proposes a data transmission method. Based on the communication cycles and data volumes corresponding to various service data streams, it determines sub-cycles and the service data streams transmitted within each sub-cycle. Furthermore, it clarifies the transmission time slot indication information for deterministic data within each sub-cycle and sends it to the slave node. This method abandons the fixed and coarse-grained uniform sub-time slot allocation model, flexibly allocating transmission time slots according to the actual needs of the service data streams. Thus, the transmission time slots allocated within each sub-cycle can be the same or different, avoiding bandwidth waste caused by using a maximum fixed bandwidth allocation. This achieves efficient utilization of network bandwidth resources and effectively meets the requirements of shared network transmission for nodes with multiple communication cycles and service data streams in complex industrial network application scenarios.

[0038] The data transmission method provided in this application can be applied to industrial networks. Specifically, it can be applied to master nodes and / or slave nodes within an industrial network.

[0039] In one exemplary embodiment, Figure 1 This is a flowchart illustrating a data transmission method, such as... Figure 1 As shown:

[0040] 101. The master node determines multiple sub-cycles and the service data streams sent within each sub-cycle based on the data transmission parameters.

[0041] The data transmission parameters include: the communication cycle corresponding to various service data streams, and the data volume of each service data stream.

[0042] In some embodiments, the above data transmission parameters may include, but are not limited to, one or more of the following: data flow direction, minimum communication period, sub-period offset, and period ratio.

[0043] In some embodiments, the minimum communication period is the minimum communication period among the communication periods corresponding to multiple service data streams.

[0044] In some embodiments, the minimum communication cycle is: the minimum communication cycle supported by the industrial network where the master node resides. The minimum communication cycle supported by the industrial network can refer to: the minimum data update cycle between nodes supported by the industrial network.

[0045] In some embodiments, the cycle ratio is the ratio between the communication cycle (i.e., the data update cycle) between nodes and the minimum communication cycle. In industrial networks, the communication cycle between nodes (such as the communication cycle of the aforementioned business data stream) is a multiple of the minimum communication cycle. For example, the cycle ratio can satisfy the multiple relationship shown in the following formula (1):

[0046] Tn = T*2^n , R=2^n (n=0,1,2,3…) (1)

[0047] In the above formula (1), Tn represents the communication period corresponding to the business data flow, and T represents the minimum communication period.

[0048] In some embodiments, sub-cycle offset refers to the start time offset of the data update cycle between nodes, and the sub-cycle offset can be an offset duration.

[0049] For example, the sub-period offset can satisfy the following formula (2):

[0050] Offset=r*T,r∈[0,Rmax) (2)

[0051] Where Offset represents the sub-cycle offset, Rmax represents the maximum value of the cycle ratio, and T represents the minimum communication cycle.

[0052] For example, Figure 2 A schematic diagram of an industrial network for real-time communication, where nodes with different communication cycle requirements are mixed and networked. Figure 2 It includes 7 industrial real-time communication nodes. These are... Figure 2 The diagram shows nodes 1, 2, 3, 4, 2.1, 2.2, and 3.1. These nodes include data sending and receiving functions. Node 1 is the master node, also called the master station or management node (i.e., a node with the function of managing other nodes). Nodes 2, 3, and 4 are slave nodes, also called slave stations (i.e., nodes that do not have the function of managing other nodes but have execution functions). The communication cycle between node 1 and nodes 2, 3, and 4 is 500 μs; the communication cycle between node 1 and nodes 2.1 and 2.2 is 125 μs; the communication cycle between node 1 and node 3.1 is 1 ms; and the communication cycle between node 3 and node 4 is 250 μs. When establishing data transmission across multiple sub-cycles based on this network, it is necessary to configure, including but not limited to... Figure 3 As shown, Figure 3 As a kind of based Figure 2 The table shown is a schematic diagram of the data transmission parameters of the industrial network.

[0053] Figure 3 In the table shown, the data flow direction "1->2 / 3 / 4" refers to the communication between node 1 and nodes 2, 3, and 4; the data flow direction "3->4" refers to the communication between node 3 and node 4; the data flow direction "1->2.1 / 2.2" refers to the communication between node 1 and nodes 2.1 and 2.2; and the data flow direction "1->3.1" refers to the communication between node 1 and node 3.1.

[0054] In some embodiments, determining the number of sub-cycles and the service data streams sent within each sub-cycle based on data transmission parameters may include, but is not limited to: determining the maximum communication cycle among the communication cycles corresponding to multiple service data streams; determining the number of sub-cycles based on the maximum and minimum communication cycles; and determining the service data streams sent within each sub-cycle based on the number of sub-cycles and the data size of each service data stream.

[0055] For example, with Figure 3Taking data streams #1, #2, #3, and #4 as examples, their corresponding communication periods are 500μs, 250μs, 125μs, and 1ms, respectively. Based on 500μs, 250μs, 125μs, and 1ms, combined with the minimum communication period of 125μs, the period ratios can be calculated as 4, 2, 1, and 8, respectively. Then, selecting the largest period ratio as the number of sub-periods yields the final division into 8 sub-periods.

[0056] For example, after knowing that the system is divided into 8 sub-cycles, the data volume of each business data stream and the preset value set for each sub-cycle can be used to determine the business data stream sent in each sub-cycle.

[0057] In some embodiments, the preset value can be the amount of data that matches the minimum communication cycle.

[0058] In some embodiments, before determining the multiple sub-cycles and the service data streams sent within each sub-cycle in step 101 above, the following steps may also be included:

[0059] (1) Obtain the data volume of each type of business data stream in multiple types of business data streams.

[0060] For example, Figure 3 Taking the four types of business data streams shown as examples (#1, #2, #3, and #4), their corresponding data sizes are 150 bytes, 50 bytes, 100 bytes, and 400 bytes, respectively.

[0061] (2) When the data volume of the first type of business data stream is greater than the preset value, the first type of business data stream is split into at least two first type of business data streams, and the data volume of each of the at least two business data streams is less than or equal to the preset value.

[0062] For example, Figure 3 The data volume of service data stream #4 shown is 400 bytes. Assuming the maximum data volume that can be transmitted with a minimum communication period of 125 μs is 150 bytes (i.e., the preset value mentioned above is 150 bytes), 400 bytes exceeds the data volume that can be transmitted with a minimum communication period of 125 μs. Therefore, service data stream #4 needs to be split, as follows: Figure 3 The data is shown as being split into four 100-byte streams, i.e. Figure 3 Data streams #4-1, #4-2, #4-3, and #4-4.

[0063] It should be noted that when splitting business data streams, the above splitting method is not limited. As long as the data volume of each split business data stream is less than or equal to the preset value, it is acceptable.

[0064] For example, in some implementations, the above business data flow #4 can also be split into two 150-byte data flows and one 100-byte data flow.

[0065] For example, in some implementations, the aforementioned business data flow #4 can also be split into one 150-byte data flow, two 100-byte data flows, and one 50-byte data flow.

[0066] For example, the first type of business data flow mentioned above may refer to Figure 3 In the context of business data flow #4, the second type of business data flow can refer to... Figure 3 Business data flows #1, #2, and #3.

[0067] (3) Take at least two business data streams of the first type and the business data stream of the second type as multiple business data streams.

[0068] The various business data flows include: at least two business data flows of type 1, and business data flows of type 2, which are other types besides type 1 among the various types.

[0069] For example, at least two business data streams of the first type and a business data stream of the second type can be used as the multiple business data streams involved in step 101 above.

[0070] The above-mentioned method determines the service data streams to be sent in each sub-cycle based on the number of sub-cycles and the data volume of each service data stream. This is equivalent to knowing which service data streams need to be sent in which sub-cycle. In this allocation process, the allocation is combined with the data volume of each service data stream to ensure that the duration of each sub-cycle is sufficient to send the allocated service data streams.

[0071] During the aforementioned business data stream splitting process, the size of the business data stream is obtained, and data streams exceeding the preset value are split and recombined to ensure that the data volume of each data stream is adapted to the minimum communication cycle transmission capacity, thereby effectively avoiding data transmission congestion, ensuring efficient and orderly data transmission in each sub-cycle, and improving the overall transmission performance of the industrial network.

[0072] In some embodiments, the service data stream sent within each sub-cycle can be determined by combining the communication cycle of each service data stream, the number of sub-cycles, and the data size of each service data stream. The communication cycle of each service data stream determines how many sub-cycles apart the same service data stream is sent.

[0073] In determining the service data streams to be transmitted within each sub-cycle, the communication cycle of each service data stream is first defined. This allows for the calculation of the number of transmissions and the number of sub-cycles within the entire transmission cycle. Next, based on the determined number of sub-cycles, and considering the data volume of each service data stream, its transmission requirements, and timing, different service data streams are rationally allocated across various sub-cycles. For example, service data streams with large data volumes and long communication cycles are distributed across multiple sub-cycles to avoid excessive data transmission pressure within a single sub-cycle; while service data streams with small data volumes and short communication cycles are concentrated in certain sub-cycles to improve transmission efficiency.

[0074] On the one hand, by rationally arranging the data stream transmission interval according to the communication cycle, the requirements of different services for data update frequency are guaranteed, and the situation of data transmission lag or over-transmission is avoided. On the other hand, by allocating transmission tasks in combination with the number of sub-cycles and the size of data, network bandwidth resources can be used in a refined manner, which not only prevents bandwidth idle waste, but also avoids network congestion caused by centralized data transmission.

[0075] For example, Figure 4 This is a schematic diagram of a business data stream transmission. The diagram illustrates a data stream based on... Figure 3 This refers to a service data stream transmission method determined by the data transmission parameters. It includes the service data streams transmitted within each of the eight sub-cycles.

[0076] It should be noted that the above Figure 4 The method shown is only an example; actual business data streams are not limited to this.

[0077] In step 101 above, by comprehensively considering parameters such as the communication cycle and data volume of various service data streams, the allocation of sub-cycles and service data streams is determined, which can effectively adapt to the characteristics of different service data streams in industrial networks. Flexible allocation based on actual business needs, compared to traditional fixed allocation methods, avoids transmission delays or resource waste caused by unreasonable resource allocation, making data transmission more aligned with actual application scenarios.

[0078] 102. The master node determines the transmission period indication information of deterministic data in each sub-cycle based on the service data stream sent in each sub-cycle, so as to obtain the transmission period indication information of deterministic data in multiple sub-cycles.

[0079] In some embodiments, the transmission period indication information for deterministic data includes: the start time of deterministic data transmission and the duration of deterministic data transmission.

[0080] In some embodiments, the transmission period indication information for deterministic data includes: the end time of transmission of deterministic data.

[0081] In some embodiments, the transmission period indication information for deterministic data includes: the start time of deterministic data transmission, the duration of deterministic data transmission, and the end time of deterministic data transmission.

[0082] The aforementioned deterministic data can refer to data that is sent by default or is required to be sent in the business data stream sent within a sub-cycle.

[0083] In this embodiment of the application, the master node knows the bandwidth allocation for each sub-cycle when it determines the transmission time period indication information of deterministic data within each sub-cycle.

[0084] For example, Figure 5 This is a schematic diagram of the bandwidth division for a sub-cycle. Figure 5 The bandwidth shown is divided as described above. Figure 3 and Figure 4 The bandwidth allocation was based on [the existing framework]. Figure 5 As can be seen from the length of the service data stream in each sub-cycle, the bandwidth allocation of each sub-cycle obtained based on the embodiments of this application is more flexible. The bandwidth required in each sub-cycle can be the same or different, and it is not a fixed bandwidth allocation.

[0085] For example, for Figure 5 For sub-cycle 1 shown, the transmission period indication information of the aforementioned deterministic data may refer to the end time of sending service data streams #1 and #3.

[0086] In step 102 above, the master node determines the transmission period indication information for deterministic data, which differs from the limitations of traditional fixed bandwidth allocation. By accurately determining the transmission period of deterministic data within each sub-cycle, flexible bandwidth allocation is achieved. This allows for dynamic adjustment of bandwidth based on the actual needs of different service data streams in different sub-cycles, greatly improving the utilization rate of bandwidth resources and ensuring the stability and efficiency of data transmission.

[0087] 103. The master node sends the transmission time period indication information of deterministic data in multiple sub-cycles to each slave node.

[0088] The transmission time period indication information is used for the transmission of deterministic data.

[0089] The aforementioned slave nodes can refer to the nodes involved in the transmission path of the various service data streams.

[0090] In some embodiments, the transmission period indication information of deterministic data within multiple sub-cycles can be treated as a whole and sent to each slave node, with each slave node receiving the same transmission period indication information.

[0091] 104. The node transmits data based on the transmission time period indication information of deterministic data within multiple sub-cycles.

[0092] In an industrial network, there can be one or more slave nodes, which are used to perform the transmission of the various business data streams mentioned above.

[0093] For example, for Figure 5 For sub-cycle 1 shown, after the node receives the end time of sending service data streams #1 and #3, the bandwidth allocated to service data streams #1 and #3 within sub-cycle 1 can be determined. Based on this bandwidth, communication between node 1 and nodes 2, 3, and 4, as well as communication between node 1 and nodes 2.1 and 2.2, can then be implemented.

[0094] The aforementioned data transmission method includes: determining multiple sub-cycles and the service data streams transmitted within each sub-cycle based on data transmission parameters; wherein the data transmission parameters include: the communication cycles corresponding to the various service data streams and the data size of each service data stream; determining transmission period indication information for deterministic data within each sub-cycle based on the service data streams transmitted within each sub-cycle, thereby obtaining transmission period indication information for deterministic data within multiple sub-cycles; and sending the transmission period indication information for deterministic data within multiple sub-cycles to each slave node; wherein the transmission period indication information is used for the transmission of deterministic data. Through this scheme, based on the communication cycles and data size corresponding to various service data streams, sub-cycles and the service data streams transmitted within each sub-cycle are determined, thereby clarifying the transmission period indication information for deterministic data within each sub-cycle and sending it to the slave nodes. In this way, the fixed and coarse unified sub-time slot allocation mode is abandoned, and the transmission time slot is flexibly allocated according to the actual needs of the business data flow. Thus, the transmission time slots allocated in each sub-cycle can be the same or different, thereby avoiding the bandwidth waste caused by using the maximum fixed bandwidth allocation, realizing the efficient use of network bandwidth resources, and effectively meeting the requirements of multiple communication cycle nodes and business data flow co-transmission in complex industrial network application scenarios.

[0095] In some embodiments, the data transmission parameters are first checked for correctness. If the correctness check passes, the number of sub-cycles and the service data stream sent in each sub-cycle are determined based on the data transmission parameters.

[0096] In one exemplary embodiment, Figure 6 This is a flowchart illustrating a data transmission method that includes a correctness verification process, such as... Figure 6 As shown:

[0097] 601. Master node obtains data transmission parameters.

[0098] 602. The master node performs a correctness check on the data transmission parameters and determines whether the check passes.

[0099] If the correctness check passes, proceed to step 603 below; if the correctness check fails, return to step 601 above to re-acquire the data transmission parameters.

[0100] The above correctness check passes, including but not limited to, at least one of the following conditions:

[0101] Case 1: The set duration of each sub-cycle is greater than or equal to the standard transmission duration of deterministic data within each sub-cycle.

[0102] For example, the data volume and the set period can meet the data transmission requirements of the set data volume.

[0103] Case 2: The ratio of the communication period corresponding to multiple service data streams to the minimum communication period is a power of 2, where n is an integer greater than or equal to 0.

[0104] For example, does the period ratio satisfy Tn = T*2^n?

[0105] Case 3: The period offset of each sub-cycle is equal to r times the minimum communication period, where r is an integer greater than or equal to 0, and r is less than the maximum value of the period ratio.

[0106] For example, does the period offset satisfy Offset=r*T, r∈[0,Rmax)?

[0107] 603. The master node determines the number of sub-cycles and the service data stream to be sent in each sub-cycle based on the data transmission parameters.

[0108] 604. The master node determines the transmission period indication information of deterministic data in each sub-cycle based on the service data stream sent in each sub-cycle, so as to obtain the transmission period indication information of deterministic data in multiple sub-cycles.

[0109] The descriptions of steps 603 and 604 above can be found in the descriptions of steps 101 and 102 above, and will not be repeated here.

[0110] In this embodiment, the master node obtains data transmission parameters and performs correctness verification to ensure that the set duration of each sub-cycle matches the data transmission requirements, ensuring the accuracy of the multiple relationship between the business data stream communication cycle and the minimum communication cycle, and standardizing the cycle offset of the sub-cycle to avoid problems such as data transmission chaos, resource waste, or transmission failure due to parameter errors. After the verification is passed, the sub-cycle and transmission period indication information are determined, which effectively improves the accuracy, stability, and reliability of data transmission, reduces the risk of transmission errors, and ensures the efficient and orderly operation of industrial network data transmission.

[0111] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0112] For example, Figure 7 This is a schematic diagram of the structure of a node in an industrial network according to one embodiment. The node includes: a memory 701, a transceiver 702, and a processor 703, wherein the memory 701, transceiver 702, and processor 703 are connected via a bus interface.

[0113] The memory 701 is used to store computer programs; the transceiver 702 is used to send and receive data under the control of the processor 703.

[0114] Regarding the case where this node is the master node:

[0115] The processor 703 described above is used to read the computer program in the memory 701 and perform the following operations:

[0116] Based on the data transmission parameters, multiple sub-cycles are determined, as well as the service data streams sent within each sub-cycle; wherein, the data transmission parameters include: the communication cycle corresponding to the various service data streams, and the data volume of each service data stream;

[0117] Based on the service data stream sent in each sub-cycle, determine the transmission period indication information of the deterministic data in each sub-cycle to obtain the transmission period indication information of the deterministic data in the multiple sub-cycles;

[0118] The transmission period indication information of the deterministic data within the multiple sub-cycles is sent to each slave node; wherein, the transmission period indication information is used to transmit the deterministic data.

[0119] In some embodiments, the processor 703 is further configured to read the computer program in the memory 701 and perform the following operations:

[0120] Before determining multiple sub-cycles and the service data streams sent within each sub-cycle based on data transmission parameters, the method further includes: obtaining the data volume of each type of service data stream among multiple types of service data streams;

[0121] When the data volume of the first type of business data stream is greater than a preset value, the first type of business data stream is split into at least two business data streams of the first type, wherein the data volume of each of the at least two business data streams is less than or equal to the preset value.

[0122] The multiple business data streams include: at least two business data streams of the first type, and a business data stream of the second type, wherein the second type is any other type among the multiple types besides the first type.

[0123] In some embodiments, the preset value is the amount of data that matches the minimum communication cycle.

[0124] In some embodiments, determining the number of sub-cycles and the service data stream sent within each sub-cycle based on data transmission parameters includes:

[0125] Determine the maximum communication period among the communication periods corresponding to the various service data streams;

[0126] The number of sub-cycles is determined based on the maximum and minimum communication cycles.

[0127] The number of sub-cycles and the data volume of each service data stream are used to determine the service data streams sent within each sub-cycle.

[0128] In some embodiments, the minimum communication period includes:

[0129] The minimum communication cycle among the communication cycles corresponding to the various service data streams;

[0130] or,

[0131] The minimum communication cycle supported by the industrial network where the master node is located.

[0132] In some embodiments, the transmission period indication information includes:

[0133] Start time of sending, duration of sending;

[0134] or,

[0135] End of transmission time.

[0136] In some embodiments, the processor 703 is further configured to read the computer program in the memory 701 and perform the following operations:

[0137] Before determining the number of sub-cycles and the service data stream sent in each sub-cycle based on the data transmission parameters, the method further includes: verifying the correctness of the data transmission parameters;

[0138] The step of determining the number of sub-cycles and the service data stream sent within each sub-cycle based on data transmission parameters includes:

[0139] If the correctness check passes, the number of sub-cycles and the service data stream sent in each sub-cycle are determined based on the data transmission parameters.

[0140] In some embodiments, the correctness verification includes:

[0141] The set duration of each sub-cycle is greater than or equal to the standard transmission duration of deterministic data within each sub-cycle;

[0142] And / or,

[0143] The ratio of the communication period corresponding to the multiple service data streams to the minimum communication period is a power of 2, where n is an integer greater than or equal to 0.

[0144] And / or,

[0145] The cycle offset of each sub-cycle is equal to r times the minimum communication cycle, where r is an integer greater than or equal to 0, and r is less than the maximum value of the cycle ratio.

[0146] For the case where the node is a slave node:

[0147] The processor 703 described above is used to read the computer program in the memory 701 and perform the following operations:

[0148] The system receives transmission period indication information for deterministic data within the plurality of sub-cycles. This transmission period indication information is used for transmitting deterministic data. The transmission period indication information for deterministic data within the plurality of sub-cycles is determined based on the service data streams sent within each sub-cycle. The service data streams sent within each sub-cycle and the plurality of sub-cycles are determined based on data transmission parameters, wherein the data transmission parameters include: the communication cycle corresponding to the plurality of service data streams and the data size of each service data stream.

[0149] Data transmission is performed based on the transmission time period indication information of deterministic data within the multiple sub-cycles.

[0150] In one exemplary embodiment, such as Figure 8 As shown, a structural block diagram of a master node is provided, including:

[0151] The determining module 801 is used to determine multiple sub-cycles and the service data streams sent in each sub-cycle based on data transmission parameters; wherein, the data transmission parameters include: the communication cycle corresponding to the multiple service data streams and the data volume of each service data stream; and to determine the transmission period indication information of deterministic data in each sub-cycle based on the service data streams sent in each sub-cycle, so as to obtain the transmission period indication information of deterministic data in the multiple sub-cycles.

[0152] The sending module 802 is used to send the transmission period indication information of the deterministic data within the plurality of sub-cycles to each slave node; wherein, the transmission period indication information is used to transmit the deterministic data.

[0153] In some embodiments, before determining multiple sub-cycles and the service data streams sent within each sub-cycle based on data transmission parameters, the determining module 801 is further configured to:

[0154] Obtain the data volume of each type of business data stream in multiple types of business data streams;

[0155] When the data volume of the first type of business data stream is greater than a preset value, the first type of business data stream is split into at least two business data streams of the first type, wherein the data volume of each of the at least two business data streams is less than or equal to the preset value.

[0156] The multiple business data streams include: at least two business data streams of the first type, and a business data stream of the second type, wherein the second type is any other type among the multiple types besides the first type.

[0157] In some embodiments, the preset value is the amount of data that matches the minimum communication cycle.

[0158] In some embodiments, the determining module 801 is specifically used to: determine the maximum communication cycle among the communication cycles corresponding to the multiple service data streams;

[0159] The number of sub-cycles is determined based on the maximum and minimum communication cycles.

[0160] The number of sub-cycles and the data volume of each service data stream are used to determine the service data streams sent within each sub-cycle.

[0161] In some embodiments, the minimum communication period includes:

[0162] The minimum communication cycle among the communication cycles corresponding to the various service data streams;

[0163] or,

[0164] The minimum communication cycle supported by the industrial network where the master node is located.

[0165] In some embodiments, the transmission period indication information includes:

[0166] Start time of sending, duration of sending;

[0167] or,

[0168] End of transmission time.

[0169] In some embodiments, before the determining module 801 determines the number of sub-cycles and the service data stream sent in each sub-cycle based on the data transmission parameters, it is further configured to:

[0170] The correctness of the data transmission parameters shall be verified.

[0171] The step of determining the number of sub-cycles and the service data stream sent within each sub-cycle based on data transmission parameters includes:

[0172] If the correctness check passes, the number of sub-cycles and the service data stream sent in each sub-cycle are determined based on the data transmission parameters.

[0173] In some embodiments, the correctness verification includes:

[0174] The set duration of each sub-cycle is greater than or equal to the standard transmission duration of deterministic data within each sub-cycle;

[0175] And / or,

[0176] The ratio of the communication period corresponding to the multiple service data streams to the minimum communication period is a power of 2, where n is an integer greater than or equal to 0.

[0177] And / or,

[0178] The cycle offset of each sub-cycle is equal to r times the minimum communication cycle, where r is an integer greater than or equal to 0, and r is less than the maximum value of the cycle ratio.

[0179] In one exemplary embodiment, such as Figure 9 As shown, a structural block diagram of a slave node is provided, including:

[0180] The receiving module 901 is configured to receive transmission period indication information for deterministic data within the plurality of sub-cycles. The transmission period indication information is used for transmitting deterministic data. The transmission period indication information for deterministic data within the plurality of sub-cycles is determined based on the service data streams sent within each sub-cycle. The service data streams sent within each sub-cycle and the plurality of sub-cycles are determined based on data transmission parameters. The data transmission parameters include: the communication period corresponding to the plurality of service data streams and the data size of each service data stream.

[0181] The transmission module 902 is used to transmit data based on the transmission period indication information of the deterministic data within the multiple sub-cycles.

[0182] It should be noted that the module division in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods. Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0183] If the integrated modules described above are implemented as software functional modules and sold or used as independent products, they can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application.

[0184] It should be noted that the apparatus provided in this embodiment of the invention can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.

[0185] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements all the method steps implemented in the above method embodiments.

[0186] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements all the method steps implemented in the above method embodiments.

[0187] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0188] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0189] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A data transmission method, characterized in that, Applied to the master node, the method includes: Based on the data transmission parameters, multiple sub-cycles are determined, as well as the service data streams sent within each sub-cycle; wherein, the data transmission parameters include: the communication cycle corresponding to the various service data streams, and the data volume of each service data stream; Based on the service data stream sent in each sub-cycle, determine the transmission period indication information of the deterministic data in each sub-cycle to obtain the transmission period indication information of the deterministic data in the multiple sub-cycles; The transmission period indication information of the deterministic data within the multiple sub-cycles is sent to each slave node; wherein, the transmission period indication information is used to transmit the deterministic data.

2. The method according to claim 1, characterized in that, Before determining multiple sub-cycles and the service data streams sent within each sub-cycle based on data transmission parameters, the method further includes: Obtain the data volume of each type of business data stream in multiple types of business data streams; When the data volume of the first type of business data stream is greater than a preset value, the first type of business data stream is split into at least two business data streams of the first type, wherein the data volume of each of the at least two business data streams is less than or equal to the preset value. The multiple business data streams include: at least two business data streams of the first type, and a business data stream of the second type, wherein the second type is any other type among the multiple types besides the first type.

3. The method according to claim 2, characterized in that, The preset value is the amount of data that matches the minimum communication cycle.

4. The method according to claim 1, characterized in that, The step of determining the number of sub-cycles and the service data stream sent within each sub-cycle based on data transmission parameters includes: Determine the maximum communication period among the communication periods corresponding to the various service data streams; The number of sub-cycles is determined based on the maximum and minimum communication cycles. The number of sub-cycles and the data volume of each service data stream are used to determine the service data streams sent within each sub-cycle.

5. The method according to claim 3 or 4, characterized in that, The minimum communication period includes: The minimum communication cycle among the communication cycles corresponding to the various service data streams; or, The minimum communication cycle supported by the industrial network where the master node is located.

6. The method according to claim 1, characterized in that, The transmission time period indication information includes: Start time of sending, duration of sending; or, End of transmission time.

7. The method according to claim 1, characterized in that, Before determining the number of sub-cycles and the service data stream sent within each sub-cycle based on the data transmission parameters, the method further includes: The correctness of the data transmission parameters shall be verified. If the correctness check passes, the number of sub-cycles and the service data stream sent in each sub-cycle are determined based on the data transmission parameters.

8. The method according to claim 7, characterized in that, The correctness verification process includes: The set duration of each sub-cycle is greater than or equal to the standard transmission duration of deterministic data within each sub-cycle; And / or, The ratio of the communication period corresponding to the multiple service data streams to the minimum communication period is a power of 2, where n is an integer greater than or equal to 0. And / or, The cycle offset of each sub-cycle is equal to r times the minimum communication cycle, where r is an integer greater than or equal to 0, and r is less than the maximum value of the cycle ratio.

9. A data transmission method, characterized in that, Applied to slave nodes, including: The system receives transmission period indication information for deterministic data within multiple sub-cycles. This information is determined based on the service data streams sent within each sub-cycle. The service data streams sent within each sub-cycle and the multiple sub-cycles are determined based on data transmission parameters, which include: the communication cycle corresponding to the various service data streams and the data size of each service data stream. Data transmission is performed based on the transmission time period indication information of deterministic data within the multiple sub-cycles.

10. A master node, characterized in that, include: Memory, transceiver, processor: The memory is used to store computer programs; The transceiver is used to send and receive data under the control of the processor; The processor is configured to read a computer program from the memory and execute the method as described in any one of claims 1 to 8.

11. A slave node, characterized in that, include: Memory, transceiver, processor: The memory is used to store computer programs; the transceiver is used to send and receive data under the control of the processor. The processor is configured to read the computer program in the memory and execute the method as described in claim 9.

12. A master node, characterized in that, include: The determination module is used to determine multiple sub-cycles and the service data streams sent within each sub-cycle based on data transmission parameters; wherein, the data transmission parameters include: the communication cycle corresponding to the multiple service data streams and the data volume of each service data stream; and to determine the transmission period indication information of deterministic data within each sub-cycle based on the service data streams sent within each sub-cycle, so as to obtain the transmission period indication information of deterministic data within the multiple sub-cycles. The sending module is used to send the transmission period indication information of the deterministic data within the multiple sub-cycles to each slave node; wherein, the transmission period indication information is used to transmit the deterministic data.

13. A slave node, characterized in that, include: The receiving module is used to receive transmission period indication information of deterministic data within multiple sub-cycles. The transmission period indication information of deterministic data within multiple sub-cycles is determined based on the service data stream sent in each sub-cycle. The service data stream sent in each sub-cycle and the multiple sub-cycles are determined based on data transmission parameters. The data transmission parameters include: the communication cycle corresponding to the multiple service data streams and the data size of each service data stream. The transmission module is used to transmit data based on the transmission period indication information of the deterministic data within the multiple sub-cycles.

14. An industrial network, characterized in that, include: A master node and multiple slave nodes, wherein the master node is configured to perform the data transmission method as described in any one of claims 1 to 8, and the slave nodes are configured to perform the data transmission method as described in claim 9.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Resource allocation method for field-level industrial wireless real-time communication

    CN111542122A

  • Wireless communications system

    EP1104962A2