An Ethernet message transmission method and apparatus

CN116938822BActive Publication Date: 2026-09-01SUPCON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310896527.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-20
Publication Date
2026-09-01
Estimated Expiration
2043-07-20

AI Technical Summary

Technical Problem

[0004]有鉴于此,本申请提供一种以太网的报文传输方法和装置,以用于解决现有技术工业控制网络中,非周期数据报文传输阶段中,接受设备接收冲突导致的降低报文传输的可靠性的问题

Benefits of technology

[0036] As can be seen from the above scheme, the Ethernet message transmission method and apparatus disclosed in this application obtains the communication rate and message duration of the communication device. During the aperiodic data message transmission phase, after receiving the aperiodic data end message sent by the previous transmitting device, the delay parameter of the current transmitting device is determined, and the message duration is corrected according to the delay parameter. The corrected message duration is used as the delay time. Finally, the corrected transmission time, obtained by correcting the original transmission time according to the delay time, is sent to the current transmitting device in the form of a data command, so that the current transmitting device sends aperiodic data at the corrected transmission time. This application obtains the delay time by setting a delay parameter to correct the message duration, so that the receiving device receives aperiodic data messages sent by each transmitting device sequentially, without receiving conflicts, thus improving the reliability of message transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116938822B_ABST
    Figure CN116938822B_ABST
Patent Text Reader

Abstract

This application discloses an Ethernet message transmission method and apparatus. It obtains the communication rate and message duration of the communication device. During the aperiodic data message transmission phase, after receiving the aperiodic data end message sent by the previous transmitting device, it determines the delay parameter of the current transmitting device and corrects the message duration based on the delay parameter. The corrected message duration is used as the delay time. Finally, the corrected transmission time, obtained by correcting the original transmission time based on the delay time, is sent to the current transmitting device in the form of a data command, so that the current transmitting device transmits aperiodic data at the corrected transmission time. This application obtains the delay time by setting a delay parameter to correct the message duration, ensuring that the receiving device receives aperiodic data messages sent by each transmitting device sequentially, avoiding reception conflicts and improving the reliability of message transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of Ethernet communication, and in particular relates to an Ethernet message transmission method and apparatus. Background Technology

[0002] Industrial control networks are typical real-time application systems. Tasks within these systems (such as the execution of function blocks) are usually triggered at regular time intervals and have deadlines for execution; these are called periodic tasks. Another type of task in real-time application systems occurs only when triggered by specific events, such as equipment configuration, fault diagnosis, program upload / download, runtime logging, and alarm handling. These are called aperiodic tasks, and they are triggered randomly. These two types of tasks are reflected in the communication of industrial control networks as two categories of communication information: periodic communication information and aperiodic communication information. Periodic information is real-time, while aperiodic information is non-real-time, exhibiting different time characteristics. Furthermore, aperiodic information typically has higher priority and is often bursty, with its timing uncertain.

[0003] There are two main types of existing industrial control networks: traditional industrial Ethernet and APL (Advanced Physical Layer) networks. Correspondingly, the communication equipment mainly includes Ethernet devices for traditional industrial Ethernet and APL devices for APL networks. When these two networks are networked together, Ethernet devices can act as either sending or receiving devices, and APL devices can also act as either sending or receiving devices. Besides communication between Ethernet devices, during the non-periodic data packet transmission phase between sending and receiving devices, reception conflicts frequently occur: when a receiving device is receiving non-periodic data packets, if the non-periodic data packets from the previous sending device have not been completely received, non-periodic data packets from other sending devices are sent to the receiving device, causing a conflict and severely affecting the reliability of message transmission. Summary of the Invention

[0004] In view of this, this application provides an Ethernet message transmission method and apparatus to solve the problem of reduced message transmission reliability caused by receiving device conflicts during the non-periodic data message transmission phase in existing industrial control networks.

[0005] To address the above problems, this application provides the following solution:

[0006] An Ethernet message transmission method, applied to a deterministic scheduling management entity, includes:

[0007] The communication rate and message duration of the communication device are obtained. The communication device includes a transmitting device and a receiving device. The message duration includes the message duration corresponding to aperiodic data.

[0008] During the aperiodic data packet transmission phase, after receiving the aperiodic data end message sent by the previous sending device, the delay parameter of the current sending device is determined. The delay parameter is the ratio of the communication rate between the current sending device and the receiving device.

[0009] Based on the delay parameter, the message duration is corrected, and the corrected message duration is used as the delay time.

[0010] A data instruction containing a corrected transmission time is sent to the current transmitting device. The corrected transmission time is the time after correcting the original transmission time based on the delay time, so that the current transmitting device can transmit non-periodic data at the corrected transmission time.

[0011] Optionally, the message duration may further include the message duration corresponding to the periodic data; the method may further include:

[0012] During the periodic data packet transmission phase, the offset parameter of the current sending device is determined. The offset parameter is the packet time length corresponding to the periodic data of the previous sending device, plus the packet time length corresponding to the periodic data of the previous sending device multiplied by the ratio of the communication rate between the current sending device and the receiving device.

[0013] The offset of the current transmitting device is determined based on the offset determination rules and the offset parameters;

[0014] Send a data instruction containing the offset of the current transmitting device to the current transmitting device.

[0015] Optionally, obtaining the communication rate and message duration of the communication device includes:

[0016] The communication rate of the current transmitting device and the communication rate of the receiving device are obtained, as well as the message time length corresponding to the periodic data of the current transmitting device and the message time length corresponding to the periodic data of the previous transmitting device.

[0017] Optionally, determining the offset of the current transmitting device based on the offset determination rule and the offset parameter includes:

[0018] When the message duration of the current sending device is greater than or equal to the offset parameter, the offset of the previous sending device is used as the offset of the current sending device;

[0019] When the message duration of the current transmitting device is less than the offset parameter, the offset of the previous transmitting device is added to the offset parameter and then the message duration corresponding to the periodic data of the current transmitting device is subtracted as the offset of the current transmitting device.

[0020] Optionally, obtaining the communication rate and message duration of the communication device includes:

[0021] The deterministic communication scheduling management entity obtains the communication rates of the current sending device and the receiving device, as well as the message duration length corresponding to periodic data and the message duration length corresponding to non-periodic data.

[0022] Optionally, after receiving the non-periodic data end message sent by the previous transmitting device, determining the delay parameters of the current transmitting device includes:

[0023] After receiving the aperiodic data packet transmission end declaration message sent by the previous device, the ratio of the communication rate of the current sending device to the communication rate of the receiving device is calculated to obtain the delay parameter of the current sending device.

[0024] Optionally, the step of correcting the message duration based on the delay parameter and using the corrected message duration as the delay time includes:

[0025] The delay time is obtained by multiplying the delay parameter by the message time length corresponding to the non-periodic data of the current transmitting device.

[0026] An Ethernet message transmission device, comprising:

[0027] Acquisition unit, determination unit, correction unit, and transmission unit;

[0028] The acquisition unit is used to acquire the communication rate and message duration of the communication device. The communication device includes a transmitting device and a receiving device. The message duration includes the message duration corresponding to non-periodic data.

[0029] The determining unit is used to determine the delay parameter of the current sending device after receiving the non-periodic data end message sent by the previous sending device during the non-periodic data packet transmission phase. The delay parameter is the ratio of the communication rate between the current sending device and the receiving device.

[0030] The correction unit is used to correct the message duration based on the delay parameter, and use the corrected message duration as the delay time.

[0031] The sending unit is configured to send a data instruction containing a corrected sending time to the current sending device. The corrected sending time is the time after correcting the original sending time based on the delay time, so that the current sending device sends aperiodic data at the corrected sending time.

[0032] Optionally, the determining unit is used for:

[0033] After receiving the aperiodic data packet transmission end declaration message sent by the previous device, the ratio of the communication rate of the current sending device to the communication rate of the receiving device is calculated to obtain the delay parameter of the current sending device.

[0034] Optionally, the correction is used for:

[0035] The delay time is obtained by multiplying the delay parameter by the message time length corresponding to the non-periodic data of the current transmitting device.

[0036] As can be seen from the above scheme, the Ethernet message transmission method and apparatus disclosed in this application obtains the communication rate and message duration of the communication device. During the aperiodic data message transmission phase, after receiving the aperiodic data end message sent by the previous transmitting device, the delay parameter of the current transmitting device is determined, and the message duration is corrected according to the delay parameter. The corrected message duration is used as the delay time. Finally, the corrected transmission time, obtained by correcting the original transmission time according to the delay time, is sent to the current transmitting device in the form of a data command, so that the current transmitting device sends aperiodic data at the corrected transmission time. This application obtains the delay time by setting a delay parameter to correct the message duration, so that the receiving device receives aperiodic data messages sent by each transmitting device sequentially, without receiving conflicts, thus improving the reliability of message transmission. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0038] Figure 1 This is a flowchart illustrating the Ethernet message transmission method provided in this application;

[0039] Figure 2 This is a flowchart illustrating a prior art Ethernet packet transmission method provided in this application, in which six 10Mbps APL devices send aperiodic data to one 10Mbps APL device.

[0040] Figure 3 This is a flowchart illustrating a method for transmitting non-periodic data from six 10Mbps APL devices to one 10Mbps APL device in the Ethernet packet transmission method provided in this application.

[0041] Figure 4 This is a flowchart illustrating a prior art Ethernet message transmission method provided in this application, in which six 100Mbps industrial Ethernet devices send aperiodic data to one 10Mbps APL device.

[0042] Figure 5 This is a flowchart illustrating a method for transmitting non-periodic data from six 100Mbps industrial Ethernet devices to one 10Mbps APL device in the Ethernet message transmission method provided in this application.

[0043] Figure 6 This is another flowchart illustrating the Ethernet data packet transmission method provided in this application;

[0044] Figure 7 This is a flowchart illustrating a prior art Ethernet packet transmission method provided in this application, in which six 10Mbps APL devices send periodic data to one 100Mbps industrial Ethernet device.

[0045] Figure 8 This is a flowchart illustrating a method for transmitting periodic data from six 10Mbps APL devices to one 100Mbps industrial Ethernet device in the Ethernet packet transmission method provided in this application.

[0046] Figure 9 This is a flowchart illustrating a prior art Ethernet message transmission method provided in this application, in which six 10Mbps APL devices send periodic data to one 10Mbps APL device.

[0047] Figure 10 This is a flowchart illustrating a method for transmitting periodic data from six 10Mbps APL devices to one 10Mbps APL device in the Ethernet packet transmission method provided in this application.

[0048] Figure 11 This is a structural diagram of the Ethernet message transmission device provided in this application. Detailed Implementation

[0049] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0050] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0051] It should be noted that the concepts of "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0052] It should be noted that the terms "a" and "a plurality of" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0053] Existing Ethernet packet transmission methods define several devices on the Ethernet network and set up a clock server for clock synchronization. Network transmission time is divided into an infinite number of equal-length communication macrocycles, each consisting of a periodic data packet transmission phase and an aperiodic data packet transmission phase. A deterministic scheduling management entity for each device controls the transmission of all periodic and aperiodic data packets, ensuring that only one device is transmitting packets on the network at any given time. Each device sends an aperiodic packet transmission declaration, which is prioritized by the deterministic scheduling management entity for each device. During the aperiodic data packet transmission phase, each device transmits aperiodic data packets sequentially according to priority. After each device has transmitted its aperiodic data packets, it sends an aperiodic data packet termination declaration. The next device receiving the termination declaration then initiates aperiodic data packet transmission.

[0054] Although the above method can reasonably schedule periodic and non-periodic information in industrial control networks, thereby achieving real-time and deterministic communication in industrial control networks, it still has the following problems:

[0055] First: The deterministic scheduling management entity of the device controls the transmission of all periodic and aperiodic data packets of the device, ensuring that at any given time, only one device on the network is sending packets, without taking into account the time slots caused by different network speeds.

[0056] In 2021, the head of the "APL Project" released a press release officially launching Ethernet-APL technology. Ethernet-APL is an extension of the 10Base-T1L (IEEE 802.3cg-2019) Ethernet physical layer standard. APL's network bandwidth is 10Mbps, while traditional industrial Ethernet typically operates at 100Mbps; the two networks are not at the same speed. When traditional industrial Ethernet and APL networks are networked together, Ethernet-APL network transmissions are scheduled and managed using a comparison technique. When data is sent to the 100Mbps traditional industrial Ethernet, there will be an additional 90% idle time, significantly reducing the overall bandwidth utilization of the Ethernet network.

[0057] Second: During the non-periodic data packet transmission phase of communication between the sending and receiving devices, reception conflicts frequently occur.

[0058] To address the aforementioned issues, this application proposes an Ethernet message transmission method and apparatus.

[0059] See Figure 1 The flowchart of the Ethernet message transmission method provided in this application is shown in the figure:

[0060] Step 101: Obtain the communication rate and message duration of the communication device. The communication device includes a transmitting device and a receiving device. The message duration includes the message duration corresponding to non-periodic data.

[0061] It should be noted that the communication equipment can be an Ethernet device or an APL device, and the communication rate refers to the interface speed of the communication device, which can be 10Mbps, 100Mbps, or 1000Mbps. For Ethernet devices, the communication rate is typically 100Mbps, while for APL devices, the communication rate is typically 10Mbps. Message duration is the time it takes for a data message to be transmitted over the network.

[0062] Optionally, the deterministic scheduling management entity obtains the communication rates of the sending and receiving devices and the message duration of aperiodic data.

[0063] Step 102: During the non-periodic data packet transmission phase, after receiving the non-periodic data end message sent by the previous sending device, determine the delay parameter of the current sending device. The delay parameter is the ratio of the communication rate between the current sending device and the receiving device.

[0064] It should be noted that the non-periodic data end message can be an end declaration message sent by the previous sending device for a non-periodic data packet.

[0065] During the non-periodic data packet transmission phase, the ratio of the current communication rate of the sending device to the communication rate of the receiving device is calculated, and this ratio is the delay parameter.

[0066] For example, suppose the communication rate of the current transmitting device is V. n The communication rate of the receiving device is V. r , It refers to the delay parameter.

[0067] Step 103: Based on the delay parameter, correct the message duration and use the corrected message duration as the delay time.

[0068] Multiply the delay parameter by the message time length corresponding to the non-periodic data of the current sending device, and use the result as the delay time of the current sending device.

[0069] For example, let the delay time be D. n The current communication rate of the transmitting device is V. n The communication rate of the receiving device is V. r The message duration corresponding to non-periodic data is S. n The formula for the delay time is:

[0070]

[0071] Step 104: Send a data instruction containing the corrected transmission time to the current transmitting device. The corrected transmission time is the time after correcting the original transmission time based on the delay time, so that the current transmitting device can transmit non-periodic data at the corrected transmission time.

[0072] The deterministic scheduling management entity corrects the original transmission time of the current transmitting device based on the delay time, and then sends a data instruction containing the corrected transmission time to the current transmitting device. The current transmitting device will then transmit aperiodic data according to the received corrected transmission time.

[0073] After the current device sends aperiodic data, it will send a declaration message indicating the end of aperiodic data message transmission to the deterministic scheduling management entity. The deterministic scheduling management entity will then adjust the transmission time of the next transmitting device.

[0074] This application discloses an Ethernet message transmission method. It obtains the communication rate and message duration of the communication device. During the aperiodic data message transmission phase, after receiving the aperiodic data end message sent by the previous transmitting device, it determines the delay parameter of the current transmitting device and corrects the message duration based on the delay parameter. The corrected message duration is used as the delay time. Finally, the corrected transmission time, obtained by correcting the original transmission time based on the delay time, is sent to the current transmitting device in the form of a data command, so that the current transmitting device transmits aperiodic data at the corrected transmission time. This application obtains the delay time by setting a delay parameter to correct the message duration, ensuring that the receiving device receives aperiodic data messages sent by each transmitting device sequentially, avoiding reception conflicts and improving the reliability of message transmission.

[0075] For example, see Figure 2 The present application provides a flowchart illustrating a prior art Ethernet packet transmission method in which six 10Mbps APL devices send aperiodic data to one 10Mbps APL device. Figure 3 The present application provides a flowchart illustrating a method for transmitting Ethernet packets in which six 10Mbps APL devices send aperiodic data to one 10Mbps APL device.

[0076] While existing technologies ensure that only one device sends aperiodic data at any given time, the message lengths of each aperiodic data item vary. Figure 2 As shown, data packets D3 are long, while data packets D4 and D5 are short. The receiving device hasn't finished receiving D3 before D4 and D5 arrive, causing a collision. However, the Ethernet packet transmission method provided in this application sets a delay time for each sending device. For D3, D4, and D5, which cause reception collisions in existing Ethernet packet transmission methods, the method ensures that D4 arrives at the receiving device just as the receiving device finishes receiving D3, and D5 arrives just as the receiving device finishes receiving D4.

[0077] For example, see Figure 4 The present application provides a flowchart illustrating a prior art Ethernet packet transmission method in which six 100Mbps industrial Ethernet devices send aperiodic data to one 10Mbps APL device. Figure 5 The present application provides a flowchart illustrating a method for transmitting Ethernet packets in which six 100Mbps industrial Ethernet devices send aperiodic data to one 10Mbps APL device.

[0078] As shown in the figure, in the prior art, because the communication rate of industrial Ethernet devices is much higher than that of APL devices, the time required for APL devices to receive non-periodic data sent by industrial Ethernet devices is longer, resulting in… Figure 4 The application addresses the issue of receiving conflicts. This application uses the following formula:

[0079]

[0080] The timing of aperiodic data transmission by each transmitting device was corrected, allowing a certain period of time before transmission, thus resolving the reception conflict issue and achieving the desired effect. Figure 5 As shown.

[0081] Optionally, in one embodiment, the Ethernet message transmission method provided in this application further includes the following steps:

[0082] Step 201: During the periodic data packet transmission phase, determine the offset parameter of the current sending device. The offset parameter is the packet time length corresponding to the periodic data of the previous sending device, plus the ratio of the packet time length corresponding to the periodic data of the previous sending device to the communication rate between the current sending device and the receiving device.

[0083] The deterministic scheduling management entity obtains the communication rate of the current sending device and the communication rate of the receiving device, as well as the message duration corresponding to the periodic data of the current sending device and the message duration corresponding to the periodic data of the previous sending device. The offset parameter is obtained by adding the message duration corresponding to the periodic data of the previous sending device to the ratio of the message duration corresponding to the periodic data of the previous sending device to the communication rate between the current sending device and the receiving device.

[0084] For example, suppose the communication rate of the transmitting device is V. n The communication rate of the receiving device is V. r The message time length corresponding to the periodic data of the current sending device is S. n The message duration corresponding to the periodic data from the previous transmitting device is S. (n-1) The offset parameter is:

[0085]

[0086] Step 202: Determine the offset of the current transmitting device based on the offset determination rule and the offset parameter.

[0087] When the message duration corresponding to the periodic data of the current transmitting device is greater than or equal to the offset parameter, the offset of the previous transmitting device is used as the offset of the current transmitting device. When the message duration of the current transmitting device is less than the offset parameter, the offset of the previous transmitting device plus the offset parameter and then minus the message duration corresponding to the periodic data of the current transmitting device is used as the offset of the current transmitting device.

[0088] Let the communication rate of the transmitting device be V. n The communication rate of the receiving device is V. r The message time length corresponding to the periodic data of the current sending device is S. n The message duration corresponding to the periodic data from the previous transmitting device is S. (n-1) The offset corresponding to the current sending device is T. n The offset corresponding to the previous transmitting device is T. (n-1) The offset determination rule is as follows:

[0089] if: T n= T (n-1) , n>=2, where T1=0.

[0090] if n>=2, where T1=0.

[0091] Step 203: Send a data instruction containing the offset of the current transmitting device to the current transmitting device.

[0092] The deterministic scheduling management entity sends a data instruction containing the offset of the transmitting device to the current transmitting device, and the current transmitting device sends periodic data according to the offset.

[0093] For example, see Figure 7 The present application provides a flowchart illustrating a prior art Ethernet packet transmission method in which six 10Mbps APL devices send periodic data to one 100Mbps industrial Ethernet device. Figure 8 The present application provides a flowchart illustrating a method for transmitting Ethernet packets in which six 10Mbps APL devices send periodic data to one 100Mbps industrial Ethernet device.

[0094] Because the communication speed of industrial Ethernet devices is much higher than that of APL devices, when an industrial Ethernet device acts as a receiving device, it can receive the periodic data sent by the APL device very quickly. Figure 7As shown, industrial Ethernet devices receive periodic data very quickly, but the time required to receive all the periodic data (D1-D6) is very long, resulting in low bandwidth utilization. This solution, by setting a new offset on the APL device, can generate... Figure 8 As shown, the D7 received the periodic data sent by each APL device in sequence, compared to the shorter time required in existing technologies.

[0095] For example, see Figure 9 This application provides a flowchart illustrating a prior art Ethernet message transmission method in which six 10Mbps APL devices send periodic data to one 10Mbps APL device. Figure 10 The present application provides a flowchart illustrating a method for transmitting Ethernet packets in which six 10Mbps APL devices send periodic data to one 10Mbps APL device.

[0096] As shown in the figure, in the existing Ethernet packet transmission method, because the data packet D3 is long and the data packets D4 and D5 are short, D4 and D5 are sent to the receiving device before the receiving device has finished receiving D3, resulting in a collision. The Ethernet packet transmission method provided in this application, by setting an offset for each APL device, ensures that for D3, D4, and D5, which cause reception collisions in the existing Ethernet packet transmission method, D4 arrives at the receiving device just as the receiving device finishes receiving D3, and D5 arrives just as the receiving device finishes receiving D4.

[0097] In summary, during the periodic data packet transmission phase, the deterministic scheduling management entity first determines the offset parameters of the current sending device, and then determines the offset of the current sending device based on the offset determination rules and the offset parameters. This allows the receiving device to receive the periodic data sent by the sending device sequentially in a shorter time, thereby improving bandwidth utilization.

[0098] In addition to the above-mentioned Ethernet message transmission method, this application also provides an Ethernet message transmission apparatus, the composition of which is as follows: Figure 11 As shown.

[0099] The unit includes an acquisition unit 10, a determination unit 20, a correction unit 30, and a transmission unit 40.

[0100] The acquisition unit 10 is used to acquire the communication rate and message duration of the communication device. The communication device includes a transmitting device and a receiving device. The message duration includes the message duration corresponding to non-periodic data.

[0101] The determining unit 20 is used to determine the delay parameter of the current sending device after receiving the non-periodic data end message sent by the previous sending device during the non-periodic data packet transmission phase. The delay parameter is the ratio of the communication rate between the current sending device and the receiving device.

[0102] The correction unit 30 is used to correct the message duration based on the delay parameter, and use the corrected message duration as the delay time.

[0103] The sending unit 40 is used to send a data instruction containing a corrected sending time to the current sending device. The corrected sending time is the time after correcting the original sending time based on the delay time, so that the current sending device sends non-periodic data at the corrected sending time.

[0104] In one embodiment, the above-described apparatus further includes:

[0105] The periodic data packet transmission unit is used to determine the offset parameter of the current sending device during the periodic data packet transmission phase. The offset parameter is the packet time length corresponding to the periodic data of the previous sending device, plus the ratio of the packet time length corresponding to the periodic data of the previous sending device to the communication rate between the current sending device and the receiving device.

[0106] The offset of the current transmitting device is determined based on the offset determination rules and the offset parameters;

[0107] Send a data instruction containing the offset of the current transmitting device to the current transmitting device.

[0108] In one embodiment, the periodic data message transmission unit is specifically used for:

[0109] The communication rate of the current transmitting device and the communication rate of the receiving device are obtained, as well as the message time length corresponding to the periodic data of the current transmitting device and the message time length corresponding to the periodic data of the previous transmitting device.

[0110] In one embodiment, the periodic data message transmission unit is specifically used for:

[0111] When the message duration of the current sending device is greater than or equal to the offset parameter, the offset of the previous sending device is used as the offset of the current sending device;

[0112] When the message duration of the current transmitting device is less than the offset parameter, the offset of the previous transmitting device is added to the offset parameter and then the message duration corresponding to the periodic data of the current transmitting device is subtracted as the offset of the current transmitting device.

[0113] In one embodiment, the acquisition unit 10 is specifically used for:

[0114] The deterministic communication scheduling management entity obtains the communication rates of the current sending device and the receiving device, as well as the message duration length corresponding to periodic data and the message duration length corresponding to non-periodic data.

[0115] In one embodiment, the determining unit 20 is specifically used for:

[0116] After receiving the aperiodic data packet transmission end declaration message sent by the previous device, the ratio of the communication rate of the current sending device to the communication rate of the receiving device is calculated to obtain the delay parameter of the current sending device.

[0117] In one embodiment, the transmitting unit 40 is specifically used for:

[0118] The delay time is obtained by multiplying the delay parameter by the message time length corresponding to the non-periodic data of the current transmitting device.

[0119] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0120] For ease of description, the above systems or devices are described separately as various modules or units based on their functions. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware components.

[0121] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0122] Finally, it should be noted that in this document, relational terms such as first, second, third, and fourth are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0123] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for transmitting Ethernet messages, characterized in that, Applied to deterministic scheduling management entities, including: The communication rate and message duration of the communication device are obtained. The communication device includes a transmitting device and a receiving device. The message duration includes the message duration corresponding to aperiodic data. During the aperiodic data packet transmission phase, after receiving the aperiodic data end message sent by the previous sending device, the delay parameter of the current sending device is determined. The delay parameter is the ratio of the communication rate between the current sending device and the receiving device. Based on the delay parameter, the message duration is corrected, and the corrected message duration is used as the delay time. A data instruction containing a corrected transmission time is sent to the current transmitting device. The corrected transmission time is the time after correcting the original transmission time based on the delay time, so that the current transmitting device can transmit non-periodic data at the corrected transmission time. The step of correcting the message duration based on the delay parameter and using the corrected message duration as the delay time includes: The delay time is obtained by multiplying the delay parameter by the message time length corresponding to the non-periodic data of the current transmitting device.

2. The method according to claim 1, characterized in that, The message duration also includes the message duration corresponding to the periodic data; the method further includes: During the periodic data packet transmission phase, the offset parameter of the current sending device is determined. The offset parameter is the packet time length corresponding to the periodic data of the previous sending device, plus the packet time length corresponding to the periodic data of the previous sending device multiplied by the ratio of the communication rate between the current sending device and the receiving device. The offset of the current transmitting device is determined based on the offset determination rules and the offset parameters; Send a data instruction containing the offset of the current transmitting device to the current transmitting device.

3. The method according to claim 2, characterized in that, The acquisition of the communication rate and message duration of the communication device includes: The communication rate of the current transmitting device and the communication rate of the receiving device are obtained, as well as the message time length corresponding to the periodic data of the current transmitting device and the message time length corresponding to the periodic data of the previous transmitting device.

4. The method according to claim 2, characterized in that, Determining the offset of the current transmitting device based on the offset determination rule and the offset parameter includes: When the message duration of the current sending device is greater than or equal to the offset parameter, the offset of the previous sending device is used as the offset of the current sending device; When the message duration of the current transmitting device is less than the offset parameter, the offset of the previous transmitting device is added to the offset parameter and then the message duration corresponding to the periodic data of the current transmitting device is subtracted as the offset of the current transmitting device.

5. The method according to claim 2, characterized in that, The acquisition of the communication rate and message duration of the communication device includes: The deterministic communication scheduling management entity obtains the communication rates of the current sending device and the receiving device, as well as the message duration length corresponding to periodic data and the message duration length corresponding to non-periodic data.

6. The method according to claim 1, characterized in that, After receiving the non-periodic data end message sent by the previous transmitting device, the delay parameters of the current transmitting device are determined, including: After receiving the aperiodic data packet transmission end declaration message sent by the previous transmitting device, the ratio of the communication rate of the current transmitting device to the communication rate of the receiving device is calculated to obtain the delay parameter of the current transmitting device.

7. An Ethernet message transmission device, characterized in that, include: Acquisition unit, determination unit, correction unit, and transmission unit; The acquisition unit is used to acquire the communication rate and message duration of the communication device. The communication device includes a transmitting device and a receiving device. The message duration includes the message duration corresponding to non-periodic data. The determining unit is used to determine the delay parameter of the current sending device after receiving the non-periodic data end message sent by the previous sending device during the non-periodic data packet transmission phase. The delay parameter is the ratio of the communication rate between the current sending device and the receiving device. The correction unit is used to correct the message duration based on the delay parameter, and use the corrected message duration as the delay time. The sending unit is used to send a data instruction containing a corrected sending time to the current sending device. The corrected sending time is the time after correcting the original sending time based on the delay time, so that the current sending device sends non-periodic data at the corrected sending time. The correction unit is used for: The delay time is obtained by multiplying the delay parameter by the message time length corresponding to the non-periodic data of the current transmitting device.

8. The Ethernet message transmission apparatus according to claim 7, characterized in that, The determining unit is used for: After receiving the aperiodic data packet transmission end declaration message sent by the previous transmitting device, the ratio of the communication rate of the current transmitting device to the communication rate of the receiving device is calculated to obtain the delay parameter of the current transmitting device.

Citation Information

Patent Citations

  • EPA real-time aggregative indicator testing method

    CN101557325A

  • Vehicle-mounted communication method, vehicle-mounted electronic equipment, vehicle-mounted communication system and medium

    CN113839847A