Acknowledgement engine for robust Ethernet communications to remote nodes
By introducing the sequence number field and data type differentiation mechanism in Ethernet communication, the problems of frame loss and out-of-order frames in Ethernet communication are solved, and the communication robustness and data integrity between ECU and remote nodes are improved.
Patent Information
- Application Number
- CN202410372816.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-26
- Filing Date
- 2024-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
Ethernet communication in the automotive field may cause frame loss and out-of-order frames, reducing the robustness of the Ethernet to Edge Bus (E2B) protocol and affecting the communication integrity of the system.
By introducing a sequence number field in the protocol data unit (PDU), mailbox data and stream data are distinguished to ensure that mailbox data is received in order and cannot be lost, while stream data can tolerate loss and send corresponding messages to detect when the sequence numbers do not match. Unexpected reset or data loss.
The robust communication flow between the electronic control unit (ECU) and remote nodes is improved, ensuring data integrity and reliability, and enhancing the system's communication robustness and fault tolerance.
Smart Images

Figure CN118740783A_ABST
Abstract
Description
[0001] Claim priority
[0002] This application claims priority to U.S. Provisional Application No. 63 / 493,228, filed on March 30, 2023, and U.S. Non-Provisional Application No. 18 / 341,616, filed on June 26, 2023, and is incorporated herein by reference. Background Art
[0003] The present disclosure relates generally to Ethernet communications and, more particularly, to an acknowledgement engine for robust Ethernet communications to remote nodes.
[0004] Automotive Ethernet connectivity is a key enabler of new regional architectures in vehicle design and supports automotive megatrends such as personalization, autonomy, and electrification. Ethernet has become a ubiquitous backbone network connectivity technology in many industries and is proving to be a key technology in the automotive world as well.
[0005] Ethernet to Edge Bus (E 2 B) is a protocol used to enhance new architectures because E 2 B eliminates the need for protocol conversion in traditional networks. 2 B Centralizes software by moving it from edge nodes to central processing units, thereby reducing software development and qualification tasks. 2 B reduces system complexity because the full hardware implementation of the edge node simplifies the design. Maintaining Ethernet all the way to the edge node provides a fully optimized Ethernet architecture that utilizes time-sensitive networking (TSN) to provide quality of service and flexible address-based routing for dynamic network creation. A broad physical layer product portfolio provides solutions for all situations. E 2 B has many other additional advantages.
[0006] However, Ethernet may drop and / or duplicate frames, and may also have out-of-order frames, which can reduce E 2 Robustness of B protocol. Summary of the Invention
[0007] The following is a simplified summary of one or more aspects in order to provide a basic understanding of these aspects. This summary is not an extensive overview of all contemplated aspects and is neither intended to identify key or critical elements of all aspects nor to delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that will be presented later.
[0008] According to aspects of the present disclosure, a computer-implemented method for managing data between an electronic control unit (ECU) and a remote node of a system is provided. The method includes receiving a protocol data unit (PDU) from the ECU by the remote node and distinguishing between mailbox data and stream data included in the PDU in response to a flag in a header of the PDU. The mailbox data is required to be received in sequence and cannot tolerate data loss. The stream data can tolerate data loss. The method also includes comparing the PDU sequence number found in the sequence number field of the PDU with the PDU expected sequence number by the remote node. The PDU sequence number: increments by 1 for each frame sent; is configured to roll over from a specific maximum value to 1; and is equal to zero only in response to an unexpected reset of the remote node. The method also includes sending a message indicating the mismatch to the ECU by the remote node in response to the sequence number of the PDU not matching the expected sequence number.
[0009] According to another aspect, a computer program product is provided. The computer program product is configured to simulate various functions of a remote node. The computer program product includes one or more non-transitory computer-readable media having instructions stored thereon that, when executed by one or more processors, cause the one or more processors, individually or in combination, to perform a method. The method includes receiving, by the remote node, a protocol data unit (PDU) from the ECU and, responsive to a flag in a header of the PDU, distinguishing between mailbox data and stream data included in the PDU. The mailbox data is required to be received in order and cannot tolerate data loss. The stream data is tolerant to data loss. The method also includes comparing, by the remote node, the PDU sequence number found in a sequence number field of the PDU with the PDU expected sequence number. The PDU sequence number is incremented by one for each transmitted frame, configured to roll over from a specific maximum value to one, and equal to zero only in response to an unexpected reset of the remote node. The method also includes, responsive to a mismatch between the PDU sequence number and the expected sequence number, sending, by the remote node, a message to the ECU indicating the mismatch.
[0010] According to a further aspect, a remote node is provided for communicating with an electronic control unit (ECU) in a system. The remote node includes one or more memories having instructions, either individually or in combination. The remote node includes one or more processors, each coupled to at least one of the one or more memories and configurable to execute the instructions. The one or more processors execute the instructions to receive a protocol data unit (PDU) from the ECU and, responsive to a flag in a header of the PDU, distinguish between mailbox data and stream data included in the PDU. The mailbox data is required to be received in order and cannot tolerate data loss. The stream data can tolerate data loss. The one or more processors further execute the instructions to compare the PDU sequence number found in a sequence number field of the PDU with the PDU expected sequence number. The PDU sequence number is incremented by one for each frame transmitted, configured to roll over from a specific maximum value to one, and equals zero only in response to an unexpected reset of the remote node. In response to a mismatch between the PDU sequence number and the expected sequence number, a message indicating the mismatch is sent to the ECU.
[0011] According to a further aspect, a computer-implemented method for managing data between an electronic control unit (ECU) and a remote node of a system is provided. The method includes sending a protocol data unit (PDU) by the ECU to the remote node and distinguishing between mailbox data and stream data included in the PDU in response to a flag in a header of the PDU. The mailbox data is required to be received in sequence and cannot tolerate data loss. The stream data can tolerate data loss. The method also includes receiving a message by the ECU from the remote node indicating a mismatch, the message being in response to a sequence number of the PDU not matching the sequence number expected for the PDU. The PDU sequence number: incremented by 1 for each frame sent, configured to roll over from a specific maximum value to 1, and equal to zero only in response to an unexpected reset of the remote node.
[0012] According to yet a further aspect, an electronic control unit (ECU) for communicating with a remote node in a system is provided. The ECU includes one or more memories, either alone or in combination, having instructions. The ECU also includes one or more processors, each coupled to at least one of the one or more memories and configurable to execute the instructions. The one or more processors execute the instructions to send a protocol data unit (PDU) to the remote node and, in response to a flag in a header of the PDU, distinguish between mailbox data and stream data included in the PDU. The mailbox data is required to be received in sequence and cannot tolerate data loss. The stream data can tolerate data loss. The one or more processors also execute the instructions to receive a message from the remote node indicating a mismatch in response to a sequence number of the PDU not matching an expected sequence number of the PDU. The PDU sequence number is incremented by 1 for each frame sent, is configured to roll over from a specific maximum value to 1, and is equal to zero only in response to an unexpected reset of the remote node.
[0013] To accomplish the foregoing and related objectives, one or more aspects comprise the features hereinafter fully described and particularly pointed out in the claims. The following description and the accompanying drawings set forth in detail certain illustrative features of one or more aspects. However, these features are indicative of but a few of the various ways in which the principles of the various aspects may be employed, and this description is intended to include all such aspects and their equivalents. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The disclosed aspects will be described below in conjunction with the accompanying drawings, which are provided to illustrate and not to limit the disclosed aspects, wherein like numerals represent like elements, wherein dashed lines may represent optional elements, and wherein:
[0015] Figure 1 is a block diagram of an example communication system having an electronic control unit (ECU) and a set of remote nodes according to an example aspect.
[0016] Figure 2 Based on the example Figure 1 A block diagram of an example of an ECU and node collection.
[0017] Figure 3-5 is a flow chart of an example method for managing data between an ECU and a remote node of a system according to an example aspect.
[0018] Figure 6 is a timing diagram of an example frame loss scenario in streaming mode according to an example aspect.
[0019] Figure 7 is a timing diagram of an example out-of-order frame scenario in streaming mode according to an example aspect.
[0020] Figure 8 is a sequence diagram of an example scenario in a mailbox pattern according to example aspects.
[0021] Figure 9 is a timing diagram of an example lost frame scenario in mailbox mode according to an example aspect.
[0022] Figure 10 is a timing diagram of an example lost frame burst transmission scenario in mailbox mode according to an example aspect.
[0023] Figure 11 is a sequence diagram of an example multicast scenario in mailbox mode according to example aspects.
[0024] Figure 12 is a flow chart of another example method 1200 for managing data between an electronic control unit (ECU) and a remote node of a system according to an example aspect. DETAILED DESCRIPTION
[0025] Aspects of the present disclosure relate to an acknowledgment engine for optimal Ethernet communication to remote nodes. The acknowledgment engine is a hardware-based implementation of one or more processors and one or more memories that processes incoming and outgoing communication traffic to distinguish between mailbox data and streaming data and respond accordingly in each case.
[0026] Various aspects of the present disclosure relate to the communication of protocol data units (PDUs). A PDU can be, for example, a packet or a frame. A packet is a PDU at Layer 3 (network layer - IP datagram) of the network OSI model. A frame is a PDU at Layer 2 (data link) of the OSI model. For illustrative purposes, further description of various aspects of the present disclosure will refer to frames, but can be readily applied to any PDU based on the teachings provided herein.
[0027] As mentioned above, the Ethernet protocol may experience out-of-order frames, lost frames, or duplicate frames. An example type of Ethernet network technology is 10BASE-T1S, where twisted pair cables are used for physical layer communications. 10BASE-T1S is designed for automotive and industrial environments where high noise and electromagnetic interference may be present. 2 B) is an Ethernet protocol, such as used in 10BASE-T1S networks, which eliminates the need for a microcontroller (MCU) in edge nodes. The present disclosure provides devices, methods, and computer-readable media that provide Ethernet communications, such as in Ethernet networks. 2 B Ethernet implementation with robust communication flow between electronic control units (ECUs) and remote nodes, and the ability to detect unexpected communication resets of remote nodes.
[0028] It should be noted that although the main 2B protocol to describe various aspects of the present disclosure, but the present disclosure is not limited to only E 2 B protocol and can be used with other Ethernet protocols. Similarly, although one or more aspects of the present disclosure may be described with respect to automotive applications, other applications described herein and contemplated by those of ordinary skill in the art given the teachings of the present disclosure provided herein may also be used.
[0029] In various aspects, such as E 2 The B-Tech Network's acknowledgment engine ensures a robust communication flow between ECUs and remote nodes by differentiating the data types in the communication flow between streaming data and mailbox data, each with different requirements.
[0030] As used herein, in various aspects, "mailbox data" refers to "robust data" or data that must be received in order and must not be lost, such as in the event of dropped frames, if communication integrity is to be maintained. Examples of mailbox data include, but are not limited to, device configuration data (e.g., for configuring sensors (gyroscopes, accelerometers, proximity, etc.), device control data (e.g., for controlling a vehicle's systems, such as braking, acceleration, or steering, controlling the movement of a manufacturing or warehouse robot, etc.), and any other type of data and / or frame that should be received completely and on time, e.g., where the data is expected to be lossless from send to receive in order to be usable by the receiving node or application.
[0031] In contrast, in various aspects, "streaming data" refers to "non-robust data" or data that may lose portions, such as in the case of lost frames. Examples of streaming data include, but are not limited to, audio data and / or video data, such as in an audio / video conference call, audio and / or video data in media and / or multimedia playback (e.g., music, programs, movies, etc.), and any other type of data and / or frames for which a receiving node or application can tolerate the loss of all or part of the data and / or frames, e.g., where at least some data loss from transmission to reception is tolerated.
[0032] The bandwidth in a 10BASE-T1S network is very reduced (10Mbps), and in some cases it is desirable for Ethernet to ensure that data has been successfully transmitted before sending more data, while in some other cases data may be lost but it is desirable for the ECU to be notified of the problem.
[0033] In various aspects, the present disclosure addresses the aforementioned problem of notifying the ECU by setting a flag in the frame header indicating whether the data is streaming data or mailbox data, and then behaving differently in each case as described in further detail herein.
[0034] In various respects, and in both cases, an additional field called a "sequence number" is added to the frame. The sequence number is a field that increments by one for each frame transmitted. The default expected frame after a reset is 0, and in one non-limiting implementation, the sequence number may roll over from 255 to 1. The listener component / device / node (hereinafter referred to as the "listener") will check whether the received number matches the expected number, and if there is a mismatch, will generate a message back to the talker component / device or node (hereinafter referred to as the "talker"). This feature can be used to detect unexpected resets, because the only time the listener expects the next sequence number to be 0 is after a talker reset.
[0035] In various aspects, if the data is indicated as mailbox data by the flag, then upon receiving a new frame, the listener will send a message back to the talker including the next expected sequence number. This may be referred to herein as a "positive acknowledgement." If upon receiving the next data, the listener determines that the sequence number of the next data does not match the expected sequence number, the listener will discard the data.
[0036] In contrast, in various aspects, if the data is indicated as streaming data by a flag, upon receiving a new frame, the listener will check whether the sequence number is the expected sequence number. If so, that is, if the sequence number matches the expected sequence number, the listener will process the data. If the sequence number is not the expected sequence number, the listener will send a message to the talker including the next expected sequence number. This may be referred to as a "negative acknowledgment" in this document. In the case of an unexpected sequence number, the listener will also process the data if the sequence number is newer than the expected sequence number. If the received sequence number is earlier than the expected sequence number, the listener will discard the data.
[0037] Reference Figure 1 , shows an example communication system 100 having an electronic controller unit (ECU) 110 and a set of remote nodes 101 according to an example aspect. The set of remote nodes 101 includes nodes 120, 130, and 140.
[0038] exist Figure 1 In the example of FIG, the system 100 may be installed in and correspond to a vehicle 199. For example, the ECU 110 may be the main controller of the vehicle 199, and the set of remote nodes 101 may correspond to vehicle systems such as steering, acceleration, braking, stability, audio (phone, music, etc.), lighting, etc. However, it should be understood that aspects of the present disclosure are not limited to vehicles and may be applied to any type of system including an ECU and remote nodes, such as a robotic system, a surveillance system, a facility access system, etc. For example, in the case of a robotic system, the remote node 101 may represent a motor for controlling the movement and arms of the robot.
[0039] Reference Figure 2 , showing an example of an ECU 110 and a node group 101 according to an example aspect.
[0040] Each of the ECU 110 and / or the node 101 may, individually or in combination, include one or more memories 1X1 containing instructions (i.e., the ECU 110 includes one or more memories 111, the remote node 120 includes one or more memories 121, the remote node 130 includes one or more memories 131, the remote node 140 includes one or more memories 141, etc.). Each of the ECU 110 and / or the node 101 may include one or more processors 1Y2 (i.e., the ECU 110 includes one or more processors 112, the remote node 120 includes one or more processors 122, the remote node 130 includes one or more processors 132, the remote node 140 includes one or more processors 142, etc.), each coupled to at least one of the one or more memories 1X1 and configurable to execute instructions. In various aspects, the ECU 110 hierarchically precedes the one or more processors 112, 122, and 132 and provides instructions thereto. In various aspects, only the ECU 110 includes one or more memories and one or more processors, and provides signals for controlling the remote nodes 120 , 130 , and 140 .
[0041] As used herein, a processor, at least one processor and / or one or more processors, individually or in combination, is configured to perform or is operable to perform multiple actions, meaning at least two different processors that can perform different, overlapping or non-overlapping subsets of the multiple actions, or a single processor that can perform all of the multiple sub-actions. In a non-limiting example where multiple processors can perform different actions in combination, the description of a processor, at least one processor and / or one or more processors that are configured or operable to perform actions X, Y, and Z may include at least a first processor and at least a second processor, wherein the first processor is configured or operated to perform a first subset of X, Y, and Z (e.g., perform X), and the second processor is configured and operable to perform a second subset of X, Y, and Z (e.g., perform Y and Z). Alternatively, the first processor, the second processor, and the third processor may be configured or operable to perform a corresponding one of actions X, Y, and Z, respectively. It should be understood that each of any combination of one or more processors can be configured or operated to perform any one or any combination of multiple actions.
[0042] In various aspects, the ECU 110 and / or the remote node 101 may include one or more peripheral devices 1X3 (i.e., the ECU 110 includes a peripheral device 113, the remote node 120 includes a peripheral device 123, the remote node 130 includes a peripheral device 133, the remote node 140 includes a peripheral device 143, etc.). For example, the ECU 110 may include one or more input devices as peripheral devices 113. As a further example, the remote node 101 may include one or more motors, lights, speakers, displays, etc. as peripheral devices 123, 133, and / or 143.
[0043] ECU 110 and remote nodes 120, 130, and 140 are connected via one or more wires 201. For example, but not limited to, any of the following cable types can be used: coaxial; twisted pair; and fiber optic cabling. In current local area networks, twisted pair is the most popular type of cabling, but the use of fiber optic cabling is increasing, especially in high-performance networks.
[0044] A description of various aspects of the present disclosure will now be given with respect to example communications between the ECU 110 and one of the remote nodes 101 , such as but not limited to the remote node 120 .
[0045] Upon receiving a valid E with the expected serial number from the ECU 110 2 When receiving a B message, the sequence number used by the remote node 120 may be updated to the sequence number of the received message, which is increased by 1 and tracked for each topic.
[0046] Streaming Mode: In streaming mode, the sequence number field is intended to prevent E 2 The B entity accepts outdated stream data and operates on it. The sequence number field also allows E 2 Entity B deducts out-of-order messages and notifies the system 100 (e.g., ECU 110). 2 If entity B receives a message on remote node 120 with a sequence number that does not match the expected update sequence number, it can discard or process the message depending on whether the message is stale. If the received sequence number is less than the expected sequence number, remote node 120 can discard the message. If the received sequence number is greater than the next expected sequence number, remote node 120 can process the message. In both cases, the remote node 120 is intended to send a non-acknowledgement message with the correct expected sequence number back to ECU 110.
[0047] Mailbox mode: In Mailbox mode, if E 2If the B entity receives a message with a sequence number that does not match the next updated sequence number, the remote node 120 discards the message and sends an acknowledgment message with the correct expected sequence number. This acknowledges all previous messages, which has the advantage of conveying more information than simply acknowledging each individual message, because it also acknowledges all messages received before the current message. If operating in burst mode, where many messages are sent before waiting for the corresponding acknowledgment, the system is significantly simplified because lost acknowledgment messages are insignificant, resulting in a significant simplification of the talker and listener implementations.
[0048] refer to Figure 3-5 , an example method 300 for managing data between an electronic control unit (ECU) 110 and a remote node 120 of a system 100 is shown. The actions of the method 300 may be performed, for example, by one or any combination of the corresponding one or more processors 112 and 122, for example, based on instructions in one or any combination of the corresponding one or more memories 111 and 121. It should be understood that while the method 300 is described with respect to communications between the ECU 110 and the remote node 120, the method 300 includes similar communications between the ECU 110 and any one or any combination of remote nodes 101.
[0049] At block 310, the method 300 includes receiving a protocol data unit (PDU) from the ECU 110 by the remote node 120 and distinguishing between mailbox data and streaming data included in the PDU in response to a flag in the header of the PDU. Mailbox data cannot tolerate data loss. Streaming data can tolerate data loss.
[0050] In one aspect, the PDU may be received by the remote node 120 in a unicast message sent by the ECU 110 to the remote node 120. In one aspect, the PDU may be received by the remote node 120 in a multicast message sent by the ECU 110 to multiple remote nodes 120, 130, and 140.
[0051] At block 320, method 300 includes comparing, by the remote node 120, the expected sequence number of the PDU with the sequence number of the PDU found in the sequence number field of the PDU, where the sequence number of the PDU is: incremented by one for each PDU transmitted; configured to roll over from a specific maximum value to one; and equal to zero only in response to an unexpected reset of the remote node. In one aspect, for an 8-bit sequence number field, the specific maximum value of the sequence number may be 255. It will be appreciated that other maximum values may be used. For example, if the sequence number field uses 16 bits, the maximum value would be 65536 and roll over to 1.
[0052] At block 330 , the method 300 includes processing, by the remote node 120 , the mailbox data differently than the streaming data in response to reviewing the flag in the header of the PDU to determine whether the PDU includes the mailbox data or the streaming data.
[0053] In one aspect, block 330 may include blocks 330A-330I.
[0054] At block 330A, the method 300 includes processing, by the remote node 120 , the mailbox data to be lossless from sending to receiving, while processing the stream data to allow for data loss from sending to receiving.
[0055] At block 330B, the method 300 includes sending, by the remote node 120 , a message to the ECU node indicating a mismatch in response to the expected sequence number not matching the sequence number of the PDU.
[0056] In one aspect, block 330B may include block 330B1.
[0057] At block 330B1 , the method 300 includes notifying the ECU 110 , by the remote node 120 , of the expected sequence number by specifying the expected sequence number in a message.
[0058] At block 330C, the method 300 includes automatically applying, by the remote node 120 responsive to a flag in the header of the PDU, mailbox mode to the mailbox data such that data is only accepted by the remote node 120 in a predetermined order and subsequent PDUs are discarded until the expected PDU is received and acknowledged.
[0059] At block 330D, the method 300 includes sending, by the remote node 120 to the ECU 110 , a message including the next expected sequence number in response to a flag in the header of the PDU indicating mailbox data is included in the PDU; and the sequence number of the PDU matches the expected sequence number of the PDU.
[0060] At block 330E, method 300 includes discarding, by the remote node, the PDU in response to: a flag in a header of the PDU indicating that the mailbox data is included in the PDU; and a sequence number of the PDU not matching an expected sequence number of the PDU.
[0061] At block 330F, the method 300 includes processing, by the remote node 120 , the PDU in response to: a flag in a header of the PDU indicating that flow data is included in the PDU; and a sequence number of the PDU matching an expected sequence number of the PDU.
[0062] At block 330G, the method 300 includes processing, by the remote node 120 , the PDU in response to: a flag in a header of the PDU indicating that flow data is included in the PDU; and a sequence number of the PDU being newer than an expected sequence number of the PDU.
[0063] At block 330H, the method 300 includes discarding, by the remote node 120 , the PDU in response to: a flag in a header of the PDU indicating that flow data is included in the PDU; and a sequence number of the PDU being older than an expected sequence number for the PDU.
[0064] At block 330I, method 300 includes sending, by ECU 110, a new PDU to remote node 120. The method also includes resending, by ECU 110, the new PDU after a timeout, in response to the PDU including mailbox data; and ECU 110 not receiving an acknowledgement of receipt of the new PDU.
[0065] At block 340 , the method 300 includes at least one of visually and audibly indicating, by at least one of the remote node 120 or the ECU, an unexpected reset of the remote node based on the serial number being equal to zero.
[0066] At box 350, the method 300 includes performing, by at least one of the remote node 120 or the ECU 110, a recovery action for the PDU in response to: the flag in the header of the PDU indicating that the mailbox data is included in the PDU; and detecting an unexpected reset of the remote node based on the sequence number of the PDU being equal to zero.
[0067] refer to Figure 6 , according to example aspects, an example frame loss scenario 600 in streaming mode, such as system 100, is shown.
[0068] In streaming mode, any lost frames from the ECU 110 to the remote node 120 are typically ignored. However, when newer than expected data is received at the remote node 120, an alert message 601 is sent back to the ECU 110 to inform the ECU 110 that an out-of-sequence message has been received. The ECU 110 can ignore the alert message 601 and continue, or alternatively take corrective action at the system level, possibly if several such alert messages are received.
[0069] In this scenario 600, the frame corresponding to sequence number 5 is lost in transmission from ECU 110 to remote node 120. Remote node 120 accepts the frame corresponding to sequence number 6 and sends an alert message 601 to ECU 110, notifying ECU 110 that the frame corresponding to sequence number 5 has not been received.
[0070] refer to Figure 7, according to example aspects, an example out-of-order frame scenario 700 in streaming mode, such as system 100, is shown.
[0071] In streaming mode, if a protocol data unit (PDU) with an old sequence number is received at the remote node 120, the PDU is rejected. The remote node 120 sends an alert message 705 to indicate an out-of-sequence frame.
[0072] In this scenario 700, the frame corresponding to sequence number 5 is sent out of order (after the frames corresponding to sequence numbers 6 and 7 and before the frame corresponding to sequence number 8). Remote node 120 rejects the frames corresponding to sequence numbers 6 and 7 (and rejects the frame corresponding to sequence number 5, indicating that the next expected sequence number is 8).
[0073] refer to Figure 8 , according to example aspects, an example scenario 800 is shown, for example, in mailbox mode of system 100 .
[0074] In mailbox mode, all EBT PDUs are acknowledged. The remote node 120 sets the sequence number field to the sequence number of the next message it should receive. This approach allows for easy recovery in the event of a system failure, where the remote node 120 always sends back the sequence number it expects to receive.
[0075] refer to Figure 9 , according to example aspects, an example lost frame scenario 900 in mailbox mode, for example, of the system 100 is shown.
[0076] If a frame is lost 901 in the transmission of the mailbox mode, the ECU 110 will not receive an acknowledgement message with the acknowledgement sequence number from the remote node 120. In this case, the ECU 110 resends 902 the frame after a timeout.
[0077] refer to Figure 10 , according to example aspects, an example lost frame burst transmission scenario 1000 in mailbox mode, for example, of the system 100 is shown.
[0078] In mailbox mode, when a frame is lost or received abnormally, the frame is not processed. The remote node 120 responds with an acknowledgment message whose sequence number is set to the sequence number of the next expected message (the lost message). When the ECU 110 receives an acknowledgment message with the same sequence number as the most recently received acknowledgment message, it is interpreted as a lost message and retransmission is initiated for all subsequent messages starting with the lost message.
[0079] In this scenario 1000, the frame corresponding to sequence number 1 is lost 1001. Frames corresponding to sequence numbers 2 and 3 are sent by ECU 110 to remote node 120. When remote node 120 receives the frames corresponding to sequence numbers 2 and 3, remote node 120 responds by ignoring the frames corresponding to sequence numbers 2 and 3 and sending an acknowledgement message indicating that the next expected sequence number is 1. ECU 110 responds by sending 1002 a frame corresponding to sequence number 1. Remote node 120 receives the frame corresponding to sequence number 1 and sends 1003 an acknowledgement message indicating that the next expected sequence number is 2.
[0080] refer to Figure 11 , according to example aspects, an example multicast scenario 1100 in mailbox mode of, for example, system 100 is shown.
[0081] Mailbox messages may also be sent to a multicast address, although having many remote nodes 120 may result in increased traffic on the network.
[0082] In this scenario 1100 , the ECU 110 sends frames corresponding to sequence numbers 1 , 2 , and 3 to the remote node 120 and the remote node 130 using multicast.
[0083] Remote nodes 120 and 130 receive and process frames corresponding to sequence numbers 1, 2, and 3, while immediately sending an acknowledgement message indicating the next expected sequence number after each reception. Thus, when remote nodes 120 and 130 receive a frame corresponding to sequence number 1, these nodes send a corresponding acknowledgement message indicating the next expected sequence number to ECU 110.
[0084] Reference Figure 12 , shows another example method 1200 for managing data between an electronic control unit (ECU) and a remote node of a system according to example aspects.
[0085] At block 1210, the method 1200 includes sending, by the ECU 110, a protocol data unit (PDU) to the remote node 120, and distinguishing between mailbox data and streaming data included in the PDU in response to a flag in the PDU header. Mailbox data must be received in order and cannot tolerate data loss. Streaming data can tolerate data loss.
[0086] At block 1220, the method 1200 includes receiving, by the ECU 110, a message from the remote node 120 indicating a mismatch, the message being responsive to a sequence number of the PDU not matching an expected sequence number of the PDU. The sequence number of the PDU is incremented by one for each transmitted frame, configured to roll over from a specific maximum value to one, and equal to zero only in response to an unexpected reset of the remote node.
[0087] At block 1230 , the method 1200 includes at least one of visually and audibly indicating, by at least one of the remote node 120 or the ECU, an unexpected reset of the remote node based on the serial number being equal to zero.
[0088] At block 1240 , the method 1200 includes performing, by at least one of the remote node 120 or the ECU 110 , a recovery action for the PDU in response to: a flag in a header of the PDU indicating that mailbox data is included in the PDU; and detecting an unexpected reset of the remote node based on a sequence number of the PDU being equal to zero.
[0089] The method 1200 may be implemented by a program storage device as described herein. The method 1200 may be executed by an ECU such as the ECU 110 .
[0090] Aspects of the present disclosure may be implemented as systems, methods, and / or computer program products at any possible level of integration and technical detail. A computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon for causing a processor to perform various aspects of the present disclosure.
[0091] A computer-readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following: a portable computer floppy disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device having instructions recorded thereon, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium itself should not be interpreted as a transient signal, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0092] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network), or downloaded to an external computer or external storage device. The network can include copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium within the corresponding computing / processing device.
[0093] Computer readable program instructions for performing operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state-setting data, or source or object code written in any combination of one or more programming languages (including object-oriented programming languages) and conventional procedural programming languages.
[0094] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products. It should be understood that each block of the flowchart illustrations and / or block diagrams and the combination of blocks in the flowchart illustrations and / or block diagrams can be implemented by computer-readable program instructions.
[0095] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, such that the instructions, executed by the processor of the computer or other programmable data processing device, create a device for implementing the functions / actions specified in the flowchart and / or block diagram blocks. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can direct the computer, programmable data processing device, and / or other device to operate in a specific manner, such that the computer-readable storage medium having the instructions stored therein comprises an article of manufacture, which comprises instructions for implementing various aspects of the functions / actions specified in the flowchart and / or block diagram blocks.
[0096] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing device, or other apparatus to cause a series of operational steps to be performed on the computer, other programmable device, or other apparatus to produce a computer-implemented process, such that the instructions executed on the computer, other programmable device, or other apparatus implement the functions / actions specified in the flowchart and / or block diagram blocks.
[0097] In various aspects, a computer-implemented method and computer program product configured to manage data between an electronic control unit (ECU) and a remote node of a system are provided. The computer program product includes one or more non-transitory computer-readable media having instructions stored thereon that, when executed by one or more processors, cause the one or more processors, individually or in combination, to perform the method as described herein.
[0098] The flow charts and block diagrams in the figure illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various aspects of the present disclosure. In this regard, each block in the flow chart or block diagram can represent a module, segment or part of an instruction, which includes one or more executable instructions for realizing a specified logical function. In some alternative implementations, the functions shown in the blocks can appear in the order shown in the figure. For example, in fact, the two blocks shown in succession can be executed substantially simultaneously, or these blocks can sometimes be executed in the opposite order, depending on the functions involved. It will also be noted that each block of the block diagram and / or flow chart diagram and the combination of the blocks in the block diagram and / or flow chart diagram can be implemented by a system based on special-purpose hardware, which performs a specified function or action or performs a combination of special-purpose hardware and computer instructions.
[0099] It should be noted that all specifications, dimensions and relationships (e.g., the number of elements, operations, steps, etc.) outlined herein are for example and teaching purposes only. Such information may be significantly changed without departing from the spirit of the present disclosure or the scope of the appended claims. These specifications apply only to one non-limiting example and, therefore, they should be interpreted as such. In the foregoing description, example aspects have been described with reference to specific component arrangements. Various modifications and changes may be made to these aspects without departing from the scope of the appended claims. Therefore, the specification and drawings should be regarded as illustrative, not restrictive.
[0100] Note that in many of the examples provided herein, interactions may be described in terms of two, three, four, or more electrical components. However, this is done for clarity and illustration purposes only. It should be understood that the system may be combined in any suitable manner. Any of the components, modules, and elements shown in the figures may be combined into a variety of possible configurations, all of which are clearly within the broad scope of this specification, based on similar design alternatives. In some cases, it may be easier to describe one or more functions of a given set of flows by reference only to a limited number of electrical elements. It should be understood that the figures and the circuits they teach are readily extensible and can accommodate a large number of components and more complex / complex arrangements and configurations. Therefore, the examples provided should not limit the scope of the circuit or inhibit its broad teaching, as the circuit may be applied to countless other architectures.
[0101] It should also be noted that in this specification, references to various features (e.g., elements, structures, modules, components, steps, operations, characteristics, etc.) included in "one aspect", "example aspect", "single aspect", "on the other hand", "some aspects", "various aspects", "other aspects", "alternative aspects", etc.) are intended to mean that any such features are included in one or more aspects of the present disclosure, but may or may not necessarily be combined in the same aspect.
[0102] It should be understood that the use of the following “ / ,” “and / or,” and “at least one of” in the context of “A / B,” “A and / or B,” and “at least one of A and B” is intended to include selecting only the first listed option (A), or only the second listed option (B), or both options (A and B). As another example, in the context of “A, B, and / or C” and “at least one of A, B, and C,” such wording is intended to include selecting only the first listed option (A), or only the second listed option (B), or only the third listed option (C), or only the first and second listed options (A and B), or only the first and third listed options (A and C), or only the second and third listed options (B and C), or all three options (A, B, and C). As will be apparent to one of ordinary skill in this and related arts, this can be extended to as many of the listed items as are apparent.
[0103] It should also be noted that the functions related to the circuit architecture only illustrate some possible circuit architecture functions that can be performed by or within the system shown in the figure. Without departing from the scope of the present disclosure, some of these operations may be deleted or removed, or these operations may be significantly modified or changed where appropriate. In addition, the timing of these operations may vary significantly. The above business processes are provided for example and discussion purposes only. The aspects described herein provide great flexibility because any suitable arrangement, chronology, configuration, and timing mechanism may be provided without departing from the teachings of the present disclosure.
[0104] Numerous other changes, substitutions, variations, alterations, and modifications may be ascertained by those skilled in the art, and this disclosure includes all such changes, substitutions, variations, alterations, and modifications that fall within the scope of the appended claims.
[0105] Note that all optional features of the apparatus and systems described above may also be implemented with respect to the methods or processes described herein, and that details in the examples may be used anywhere in one or more aspects.
[0106] The "method" in these cases (above) may include (but is not limited to) the use of any suitable components discussed herein, as well as any suitable software, circuits, hubs, computer code, logic, algorithms, hardware, controllers, interfaces, links, buses, communication paths, etc.
[0107] Note that for the examples provided above and many other examples provided herein, interactions can be described in terms of two, three, or four network elements. However, this is done for clarity and illustration purposes only. In some cases, it may be easier to describe one or more functions of a given set of flows by referencing only a limited number of network elements. It should be understood that the topologies shown in and described with reference to the accompanying drawings (and their teachings) are readily scalable and can accommodate a large number of components and more complex / complex arrangements and configurations. Therefore, the examples provided should not limit the scope of the illustrated topologies or inhibit their broad teachings that may be applied to countless other architectures.
[0108] It is also important to note that the steps in the preceding flow charts illustrate only some possible signaling scenarios and patterns that may be performed by or within the communication system depicted in the figures. Where appropriate, some of these steps may be deleted or removed, or may be significantly modified or altered without departing from the scope of the present disclosure. Furthermore, many of these operations have been described as being performed simultaneously or in parallel with one or more additional operations. However, the timing of these operations may vary significantly. The above business processes are provided for example and discussion purposes only. The communication system depicted in the figures provides significant flexibility because any suitable arrangement, chronology, configuration, and timing mechanism may be provided without departing from the teachings of the present disclosure.
[0109] Although the present disclosure has been described in detail with reference to specific arrangements and configurations, these exemplary configurations and arrangements may be significantly altered without departing from the scope of the present disclosure. For example, although the present disclosure has been described with reference to a specific communications switch, the aspects described herein may be applied to other architectures.
[0110] Numerous other changes, substitutions, variations, alterations, and modifications may be ascertained by those skilled in the art, and the present disclosure includes all such changes, substitutions, variations, alterations, and modifications that fall within the scope of the appended claims. To assist the United States Patent and Trademark Office (USPTO), and any reader of any patent issuing from this application, in interpreting the claims appended hereto, applicants wish to note that applicants: (a) do not intend in any of the appended claims to invoke 35 U.S.C. § 142, paragraph 6(6), as such paragraph exists on the date of filing this agreement unless a particular claim specifically uses the term "method" or "step"; and (b) do not intend, by any statement in the specification, to limit the present disclosure in any manner not otherwise reflected in the appended claims.
Claims
1. A computer-implemented method for managing data between an electronic control unit (ECU) and a remote node of a system, the method comprising: receiving a protocol data unit (PDU) from the ECU by the remote node, and distinguishing between mailbox data and stream data included in the PDU in response to a flag in a header of the PDU, wherein the mailbox data is required to be received in sequence and cannot tolerate data loss, and the stream data can tolerate data loss; comparing, by the remote node, the PDU sequence number found in a sequence number field of the PDU with the PDU expected sequence number, the PDU sequence number: incrementing by one for each transmitted frame, configured to roll over from a specific maximum value to one, and equal to zero only in response to an unexpected reset of the remote node; and In response to the sequence number of the PDU not matching the expected sequence number, a message indicating the mismatch is sent by the remote node to the ECU. 2 . The computer-implemented method of claim 1 , further comprising notifying the ECU, by the remote node, of the expected serial number by specifying the expected serial number in the message. 3 .
3. The computer-implemented method of claim 1 further comprises determining, by the remote node, whether the PDU includes the mailbox data or the stream data in response to viewing the flag in the header of the PDU, processing the mailbox data differently from the stream data.
4. The computer-implemented method of claim 1, wherein the mailbox data is processed to be lossless from sending to receiving, and the stream data is processed to allow for data loss from sending to receiving.
5. A computer-implemented method according to claim 1, wherein in a mailbox mode automatically applied to the mailbox data by the remote node in response to the flag in the header of the PDU, PDUs are accepted by the remote node only in a predetermined order so that subsequent PDUs are discarded until the expected PDU is received and confirmed.
6. The computer-implemented method of claim 1 , further comprising: sending, by the remote node to the ECU, a message including a next expected sequence number, in response to a flag in a header of the PDU indicating that the mailbox data is included in the PDU; and the sequence number of the PDU matches the expected sequence number of the PDU.
7. The computer-implemented method of claim 1 further comprises discarding the PDU by the remote node in response to: a flag in a header of the PDU indicating that the mailbox data is included in the PDU; and a sequence number of the PDU does not match an expected sequence number of the PDU.
8. The computer-implemented method of claim 1 further comprising processing the PDU by the remote node in response to: a flag in a header of the PDU indicating that the flow data is included in the PDU; and a sequence number of the PDU matching an expected sequence number of the PDU.
9. The computer-implemented method of claim 1 further comprising processing the PDU by the remote node in response to: a flag in a header of the PDU indicating that the flow data is included in the PDU; and a sequence number of the PDU is newer than an expected sequence number of the PDU.
10. The computer-implemented method of claim 1, further comprising discarding the PDU by the remote node in response to: a flag in a header of the PDU indicating that the flow data is included in the PDU; and a sequence number of the PDU is older than an expected sequence number of the PDU.
11. The computer-implemented method of claim 1 , further comprising at least one visual and audible indication, the at least one indication indicating an unexpected reset of the remote node based on the serial number being equal to zero by at least one of the remote node or the ECU.
12. The computer-implemented method of claim 1 further comprises performing a recovery action of the PDU by at least one of the remote node or the ECU, the recovery action being responsive to: the flag in the PDU header indicating that the mailbox data is included in the PDU; and detecting an unexpected reset of the remote node based on a sequence number of the PDU being equal to zero.
13. The computer-implemented method of claim 1 , further comprising: The ECU sends a new PDU to the remote node; In response to a PDU including mailbox data, a new PDU is resent by the ECU after a timeout; And the ECU does not receive confirmation of receipt of the new PDU.
14. The computer-implemented method of claim 1, wherein the PDU is sent to a plurality of remote nodes in a multicast message.
15. The computer-implemented method of claim 1, wherein the particular maximum value of the sequence number is 255.
16. The computer-implemented method of claim 1, wherein the remote node is configured to communicate with the ECU using an Ethernet to Edge Bus (E2B) protocol.
17. A computer program product configured to manage data between an electronic control unit (ECU) and a remote node of a system, the computer program product comprising one or more non-transitory computer readable media having instructions stored thereon, which when executed by one or more processors cause the one or more processors to perform a method, individually or in combination, comprising: The remote node receives a protocol data unit (PDU) from the ECU, and distinguishes between mailbox data and stream data included in the PDU in response to a flag in a header of the PDU, wherein the mailbox data is required to be received in sequence and cannot tolerate data loss, and the stream data can tolerate data loss; comparing, by the remote node, the PDU sequence number found in a sequence number field of the PDU with the PDU expected sequence number, the PDU sequence number being: incremented by one for each frame transmitted; configured to roll over from a particular maximum value to one; and equal to zero only in response to an unexpected reset of the remote node; and In response to the sequence number of the PDU not matching the expected sequence number, a message indicating the mismatch is sent by the remote node to the ECU.
18. The computer program product of claim 17, wherein the method further comprises: The ECU is notified of the expected serial number by the remote node by specifying the expected serial number in the message.
19. The computer program product of claim 17, wherein the method further comprises: Determining, by the remote node, whether the PDU includes the mailbox data or the stream data in response to viewing the flag in the header of the PDU, processing the mailbox data differently from the stream data.
20. The computer program product of claim 17, wherein the mailbox data is processed to be lossless from sending to receiving, and the stream data is processed to allow for data loss from sending to receiving.
21. A computer program product according to claim 17, wherein in a mailbox mode automatically applied to the mailbox data by the remote node in response to the flag in the header of the PDU, data is accepted by the remote node only in a predetermined order so that subsequent PDUs are discarded until the expected PDU is received and confirmed.
22. The computer program product of claim 17, wherein the remote node is configured to communicate with the ECU using an Ethernet to Edge Bus (E2B) protocol.
23. A remote node for communicating with an electronic control unit (ECU) in a system, the remote node comprising: one or more memories, individually or in combination, having instructions; one or more processors, each coupled to at least one of the one or more memories and configurable to execute the instructions to: receiving a protocol data unit (PDU) from the ECU and distinguishing between mailbox data and stream data included in the PDU in response to a flag in a header of the PDU, wherein the mailbox data is required to be received in sequence and cannot tolerate data loss, and the stream data can tolerate data loss; comparing the PDU sequence number found in a sequence number field of the PDU with the PDU expected sequence number, the PDU sequence number being: incremented by one for each frame transmitted; configured to roll over from a specific maximum value to one; and equal to zero only in response to an unexpected reset by a remote node; and In response to the sequence number of the PDU not matching the expected sequence number, a message indicating the mismatch is sent to the ECU.
24. The remote node of claim 23, wherein the remote node is configured to communicate with the ECU using an Ethernet to Edge Bus (E2B) protocol.
25. A computer-implemented method for managing data between an electronic control unit (ECU) and a remote node of a system, the method comprising: sending a protocol data unit (PDU) by the ECU to the remote node and distinguishing between mailbox data and stream data included in the PDU in response to a flag in a header of the PDU, the mailbox data being required to be received in sequence and not tolerant of data loss, and the stream data being tolerant of data loss; and A message indicating a mismatch is received by the ECU from the remote node, the message being in response to a sequence number of the PDU not matching an expected sequence number of the PDU, the PDU sequence number being incremented by one for each frame transmitted, being configured to roll over from a specific maximum value to one, and being equal to zero only in response to an unexpected reset of the remote node.
26. An electronic control unit (ECU) for communicating with a remote node in a system, the ECU comprising: one or more memories, individually or in combination, having instructions; one or more processors, each coupled to at least one of the one or more memories and configurable to execute the instructions to: Sending a protocol data unit (PDU) to the remote node, and distinguishing between mailbox data and stream data included in the PDU in response to a flag in a header of the PDU, wherein the mailbox data is required to be received in sequence and cannot tolerate data loss, and the stream data can tolerate data loss; and In response to a sequence number of a PDU not matching an expected sequence number of the PDU, a message indicating the mismatch is received from the remote node, wherein the PDU sequence number is incremented by one for each transmitted frame, is configured to roll over from a specific maximum value to one, and is equal to zero only in response to an unexpected reset of the remote node.
Citation Information
Cited By
Method and system for simulating hardware communication protocol in virtual simulation environment
CN120614404A
Softwareless integrated systems
EP4822462A1
