Method for determining propagation delay between head node on one side and plurality of other bus nodes on other side of data bus and data bus head node, corresponding data bus system and vehicle comprising such data bus system

By using sleep messages and wake-up signals in the data bus system, it is ensured that only selected bus nodes participate in propagation delay measurement, which solves the problem of poor synchronization of bus nodes in vehicles and achieves accurate propagation delay measurement and synchronization improvement.

CN118614042APending Publication Date: 2024-09-06KERIDA EUROPE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280090397.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-02-01
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In vehicles, the propagation delay between bus nodes of the data bus system is difficult to accurately measure, resulting in difficulty in audio playback synchronization, and the existing PTP time synchronization protocol cannot be effectively applied in multipoint mode, resulting in security deployment and synchronization issues.

Method used

By introducing sleep messages and wake-up signals in the data bus system, it is ensured that only selected bus nodes participate in propagation delay measurement, and other nodes are in a dormant state to avoid interference, and existing protocols are used to exchange measurement messages to achieve accurate measurement of propagation delay.

Benefits of technology

It achieves accurate measurement of propagation delays in the data bus system, ensures synchronization of audio playback, avoids measurement cycle interruptions due to interference, shortens the overall startup time, and improves the synchronization consistency of the vehicle network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118614042A
    Figure CN118614042A
Patent Text Reader

Abstract

The invention relates to a method for determining respective propagation delays between a head node (20) on one side and a plurality of other bus nodes (21) on the other side of a data bus system (17), the determination of the respective propagation delays comprising an exchange of predetermined measurement messages (30, 33, 34), and wherein the method comprises causing the head node (20) to successively perform respective measurement periods (40), comprising: selecting one of the bus nodes (21) for each measurement period (40); and switching each remaining of the bus nodes (21) from a wake-up state (71), in which the bus node (21) responds to the measurement messages (30, 33, 34), to a predetermined sleep state, in which the bus node (21) remains unresponsive to the measurement messages (30, 33, 34); and performing propagation delay measurements between the head node (20) and the selected bus node (21) by exchanging measurement messages (30, 33, 34); and activating each remaining bus node (21) from a dormant state by means of at least one wake-up signal (50).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method and a data bus head node for determining the corresponding propagation delay between a head node on one side and a plurality of other bus nodes on the other side. The value of the propagation delay can be used to synchronize the other bus nodes, for example for audio playback in a vehicle. The invention also includes a data bus system and a vehicle comprising the data bus system. Background Art

[0002] In a vehicle, several bus nodes of a data bus system may be used to play back audio signals, for example for playing back music or presenting announcements or for a hands-free telephone function. For example, each such bus node may include or control a digital-to-analog converter (DAC) and / or an audio amplifier for driving a corresponding speaker. In order to provide coordinated playback, the bus nodes need to be synchronized because they play back their audio signal portions in a coordinated or synchronized manner. For example, the bus nodes may be required to play back their audio data simultaneously or with a predetermined time delay. However, the corresponding audio data may be received by the bus nodes from a common head node of the data bus system, which sends the audio data to the bus nodes via a data bus line. Each bus connection between the head node on one side and the corresponding bus node on the other side may be guided by a bus line segment having a different length, so that when the audio data is transmitted from the head node to the corresponding bus node, a different propagation delay is generated. This needs to be taken into account when coordinating or synchronizing the bus nodes to coordinate audio playback on the data bus system.

[0003] Audio playback is not the only application in a data bus system that requires bus node synchronization. Often, for such applications, it is necessary to know the propagation delay of the data transmitted from the head node to the corresponding bus node and / or in the reverse direction.

[0004] Therefore, for the use case of audio transmission in a data bus (and many other use cases), packet-based time synchronization of the constituent parts is required. Today, this is achieved via the standardized protocol IEEE802.1AS, PTP (or derived variants) (e.g. for 100 Mbit / s or 1000 Mbit / s).

[0005] However, IEEE 802.1AS (and IEEE 1588) are not specified for use with data bus systems that are typically available in vehicles (IEEE 802.3cg and multi-drop mode). The use of IEEE 802.1AS is often technically possible, but the state machine of the protocol is not suitable and therefore the available software is not suitable either. Using today's software stacks will inevitably lead to problems when executing the protocol (and runtime measurements).

[0006] One possible transmission technology for a data bus system is 10 Mbit / s Ethernet. However, 10 Mbit / s Ethernet cannot be used for PTP when multipoint mode is used. Core technical problem: The measurement messages for measuring the transmission delay are received by all connected bus nodes in the data bus system (multipoint mode), i.e. the time synchronization based on PTP in combination with 802.3cg in multipoint mode therefore causes problems, which is why a safe deployment cannot be guaranteed. Receiving a measurement message will lead to a reset of the state machine of the PTP protocol on all bus nodes not involved. Such a problem "only" affects the 10 Mbit / s bus in the outlined case, but if a different PTP stack has to be used, the entire vehicle will be synchronized in the future and there will no longer be a homogeneous solution.

[0007] In order to measure the propagation delay, the described PTP-based time synchronization uses several measurement messages that need to be exchanged between one of the bus nodes on one side and the head node on the other side: According to the protocol, the bus node can send a propagation delay request Pdelay_req as the first message to be received by the head node. The head node can then reply with a propagation delay response message Pdelay_resp and a propagation response follow-up message Pdelay_resp_F_up. This allows the propagation delay in the bus line connecting the head node and the bus node to be measured. However, in a data bus system, all the remaining bus nodes will also receive the measurement message and may therefore also react by sending their own propagation delay response message Pdelay_resp, which will interfere with the measurement cycle. Summary of the invention

[0008] The object of the invention is to measure the individual propagation delays between a head node of a data bus system on the one hand and a corresponding bus node of the data bus system on the other hand.

[0009] This object is achieved by the subject matter of the independent claims. Advantageous developments of expedient and important further embodiments of the invention are specified in the following description, the dependent claims and the drawings.

[0010] As a solution, the invention provides a method for determining the respective propagation delays between a head node on one side and a plurality of other bus nodes on the other side of a data bus system. The determination of the respective propagation delays comprises the exchange of predetermined measurement messages such as those already explained. The head node may be provided as a further bus node, which acts as a bus master for the bus area or bus branch to which the other bus nodes are connected. Each bus node may be, for example, a respective electronic control unit ECU, which may be, for example, part of an audio playback device or a sensor device or an actuator, which is only an example.

[0011] The method includes the head node successively executing corresponding measurement cycles, and for each measurement cycle, the method includes:

[0012] Select another bus node in the bus node, and

[0013] switching each of the remaining bus nodes by means of at least one sleep message from a wake-up state, in which the bus node responds to the measurement messages, into a predetermined sleep state, in which the bus node remains unresponsive to any measurement messages, and

[0014] Perform corresponding propagation delay measurements between the head node and the selected bus nodes by exchanging measurement messages, and

[0015] Activation of each remaining bus node from the sleep state by at least one wake-up signal (in order to return to the awake state).

[0016] In other words, for each bus node, the propagation delay is measured or determined individually, while the remaining bus nodes remain in a dormant state or are switched to a dormant state. These remaining bus nodes are therefore not able to react to the measurement messages exchanged in order to determine the propagation delay. Therefore, during each measurement cycle, the selected bus nodes and the head node can work or operate as if they were the only bus nodes connected to the bus line of the data bus system. Therefore, the protocol used or the measurement message exchanged can be a protocol or measurement message known in the prior art for measuring the propagation delay, and no other device is required to react to the measurement message. In particular, the above-mentioned PTP-based time synchronization is therefore applicable to the multi-point mode of Ethernet, that is, the PTP-based time synchronization is therefore applicable to data bus systems in which several bus nodes are connected to the same bus line or bus conductor. The dormant messages and wake-up signals required to perform the method are available in the corresponding data bus system. For such a data bus system, the corresponding dormant messages and wake-up signals are available in the prior art.

[0017] The invention also includes embodiments that provide features that impart additional technical advantages.

[0018] An improvement comprises determining (by the head node) whether all bus nodes are in the awake state before the first measurement cycle and / or between each measurement cycle. If it is determined that at least one bus node is in the dormant state, the (dormant) bus node is switched to the awake state by a wake-up signal. This ensures that all other bus nodes can receive the dormant message for the next measurement cycle. This provides the advantage that no bus node is already in the dormant state when the dormant message is sent, because such a bus node may wake up or become active during the measurement cycle due to another event (e.g. an internal timer signal), so that the bus node may react to the measurement message, thereby possibly disturbing the measurement cycle. In order to detect that all bus nodes are in the awake state, polling can be performed, wherein a predefined control message is sent to each bus node, and the head node determines whether each bus node has sent a reply message. Additionally or alternatively, the head node can listen to messages on the data bus system and can determine whether all bus nodes are active and are sending messages based on the address or the address contained in these messages.

[0019] An improvement includes that in the corresponding measurement cycle, the exchange of measurement messages is carried out according to a predetermined protocol, and in the case of receiving a measurement message contrary to the protocol during the corresponding measurement cycle, the sending bus node is identified based on the measurement message contrary to the protocol, and then the bus node is switched to a dormant state by an additional dormant message. The protocol can be, for example, the time synchronization based on PTP (precision time protocol, such as defined by IEEE 1588 2002 and IEEE1588-2008, IEEE802.1AS) that has been described. The identity or address of the bus node that has sent an error or interference measurement message can be determined using the measurement message itself, wherein the sending node is identified as the sender, for example, by a node ID. If the measurement cycle is disturbed by such a node, the node will be explicitly sent an additional dormant message or switched to a dormant state using an additional dormant message. This ensures that the measurement cycle can continue or repeat without any further interference.

[0020] A further improvement consists in repeating the measurement cycle or sending the next measurement message in the line according to the protocol. Repeating the measurement cycle after switching the sending bus node to sleep mode ensures that disturbances caused by measurement messages contrary to the protocol have no influence on the measurement. Alternatively, by continuing the measurement with the next measurement message, additional time delays in the measurement cycle are avoided. If the measurement cycle is part of a startup procedure, this also shortens the overall startup uptime.

[0021] A further improvement consists in that during the respective measurement cycle, the at least one wake-up signal is sent in advance, before the last measurement message of the measurement cycle is sent. In other words, while the measurement of the propagation delay is still in progress, the reactivation or activation of other bus nodes in the dormant state has already begun or been initiated. This shortens the duration of the measurement cycle.

[0022] A further development consists in that for all bus nodes or all bus nodes currently in the dormant state, a minimum value for the wake-up time is determined, i.e. the time elapsed between sending a wake-up signal to the fastest bus node until the fastest bus node reaches the awake state, and the early sending of the wake-up signal only occurs if the minimum value is greater than the remaining duration of the complete exchange of the expected measurement message plus a predetermined processing time value for the selected bus node. The minimum value can be predetermined, for example, during the configuration of the data bus system. The "fastest bus node" is the bus node which requires the least time from receiving the wake-up signal to reaching the awake state. Thus, by taking into account or taking into account the minimum value, it can be ensured that no bus node reaches its awake state while there are still measurement messages to be transmitted via the data bus.

[0023] Another improvement includes that the sending in advance only occurs when the data transmission / data transmission meets the predetermined reliability standard. The reliability standard can express the conditions of the noise on the data bus line and / or the number of error messages received. For example, the reliability standard can include that the noise measured by the head node must be below a predetermined threshold and / or the number of error messages received must be below a predetermined threshold. This ensures that in the remaining time of the measurement cycle, it is not necessary to repeat the measurement message due to transmission errors. Otherwise this may cause a delay so that one of the bus nodes may reach its wake-up state before the last measurement message is successfully sent.

[0024] A further improvement consists in that the early sending only takes place if an exchange of measurement messages has already taken place according to the protocol, otherwise the measurement cycle is repeated. In other words, if the protocol has been violated or if there is an erroneous step in the protocol, there is a risk of encountering another or further interruption or delay in the measurement cycle, so that other bus nodes should not switch to the awake state prematurely / too early.

[0025] A further improvement comprises that in the data bus, the head node and the bus nodes are connected to a common bus line, and each message of the head node reaches each bus node via the common bus line. In other words, any message on the bus reaches each other bus node (including the head node). In other words, the method can be applied to a data bus system, wherein any other bus node (including the head node) can "see" or "receive" any message transmitted via the bus line, because there is no data switching device to separate the bus nodes. However, during the corresponding measurement cycle, only one bus node is in the awake state at a time, so that other bus nodes that are not currently participating in the measurement cycle do not generate additional interference or interrupt measurement messages. As will be further explained below, this does not necessarily apply to other bus participants, i.e. other bus nodes, that are not part of the measurement cycle at all.

[0026] A further improvement comprises that after determining the propagation delay, the head node sends at least one data packet with output data to be processed and / or output by the bus node, wherein the data packet contains the output data and a timestamp of a corresponding output time, and the output time is determined as a function of / according to the determined maximum propagation delay, so that the output time is located in time after the propagation delay expires / terminates. In other words, the output data will arrive at each bus node before the corresponding system time or clock of the bus node reaches the signal output time given by the timestamp. Thus, when the corresponding output time according to the timestamp is reached, each bus node will be ready to process and / or output the output data.

[0027] A further improvement includes starting the determination of the propagation delay when at least one predetermined triggering event is detected. In other words, by defining the corresponding triggering event, the technician can decide or control when to use the described measurement cycle to determine the propagation delay. Suitable time points are, for example, the end of production, the end of the production line configuration, and in the vehicle, the ignition signal indicating that the vehicle has been activated or turned on can be used as an event trigger. When a software update is performed in the head node or one of the other bus nodes, this can also be defined as a triggering event. Changes in the on-board data bus network that may have changed the bus line can also be used as a triggering event, which can be set, for example, by a person performing maintenance work. When a new resource, such as a new bus node, is connected to the data bus system, this can also be used or defined as a triggering event when the head node determines a new bus user or bus node.

[0028] A further development comprises that at least one further bus user is additionally connected to the data bus which is excluded from the determination of the propagation delay and therefore does not respond to the measurement message, and each further bus user remains excluded from switching to the sleep mode during the measurement cycle. In other words, the operation of any other bus user which does not react to the measurement message in any way is not interrupted or disturbed by the execution of the method for determining the propagation delay.

[0029] The measuring cycle depends on the successive selection of one of the bus nodes by the head node. For example, the selection can be controlled by using the node ID of the bus nodes. For example, the bus nodes can be selected in the reverse order of their node ID values. Additionally or alternatively, for each bus node there may be a priority value or availability requirement. This can also be used to define the order in which the bus nodes are selected.

[0030] As another solution, the present invention provides a bus node suitable for operating as a head node of a data bus system, wherein the bus node includes a processor unit suitable for executing an embodiment of the method of the present invention. The head node can be suitable for operating a branch of the data bus system as a master node, and the branch leads to other bus nodes. As known from the prior art, the remaining other bus nodes can operate in a slave mode. The bus node can be designed as an electronic control unit.

[0031] The head node may include a data processing device or a processor circuit suitable for executing an embodiment of the method according to the present invention. To this end, the processor circuit may include at least one microprocessor and / or at least one microcontroller and / or at least one FPGA (field programmable gate array) and / or at least one DSP (digital signal processor). In addition, the processor circuit may include a program code, which includes computer-readable instructions that execute an embodiment of the method according to the present invention when performed by the processor device. The program code may be stored in a data memory of the processor device.

[0032] As a solution, the present invention provides a data bus system for a vehicle, the bus system comprising a head node and a plurality of other bus nodes, wherein the head node is an embodiment of the bus node adapted to operate as a head node, and / or the data bus system is adapted to perform an embodiment of the method of the present invention. Preferably, the data bus system is based on Ethernet technology, in particular 10 Mbit / s Ethernet. In order to operate such an Ethernet as a data bus system, a so-called multipoint mode can be used, for example as defined in the following technical standardizations.

[0033] As a solution, the invention provides a motor vehicle comprising an embodiment of a bus system. In such a motor vehicle, the use of a data bus system allows the electronic control units forming the respective bus nodes of the data bus system to be coordinated in a synchronized manner by taking into account the propagation delay of the data transmission on the bus line. The vehicle of the invention is preferably designed as a motor vehicle, in particular a passenger car or a truck, or a bus or a motorcycle.

[0034] The invention also includes combinations of features from different embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In the following, exemplary embodiments of the present invention are described. The accompanying drawings show:

[0036] Figure 1 is a schematic diagram of an embodiment of a motor vehicle of the present invention; and

[0037] Figure 2 is based on Figure 1 A schematic diagram of a data bus system of a motor vehicle when the data bus system is activated;

[0038] Figure 3 is a schematic diagram of a data bus system illustrating a measurement cycle for determining propagation delay;

[0039] Figure 4 A method for carrying out a measuring cycle on several bus nodes of a data bus system is shown;

[0040] Figure 5 It is used to illustrate Figure 4 Figure 1 shows an improved version of the program;

[0041] Figure 6 is a diagram for explaining error handling during a measurement cycle;

[0042] Figure 7 is a diagram for explaining a procedure for shortening a measurement cycle;

[0043] Figure 8 is a diagram for illustrating a procedure for determining a wake-up time of a fastest bus node;

[0044] Fig. 9 It is used to illustrate the Figure 8 A diagram of the process showing the quantities used in the process; and

[0045] Fig.10 is a diagram for explaining a procedure of sending a wake-up signal in advance before sending the last measurement message of the current measurement cycle. DETAILED DESCRIPTION

[0046] The embodiment explained below is a preferred embodiment of the present invention. However, in this embodiment, the components of this embodiment each represent independent features of the present invention, which are considered to be independent of each other and each also develops the present invention independently of each other, and are therefore also considered to be components of the present invention in an independent manner or in another manner different from the combination shown. In addition, the described embodiment may also be supplemented by other features of the present invention that have already been described.

[0047] In the drawings, the same reference numerals denote elements providing the same function.

[0048] Figure 1 A motor vehicle 10 is shown, which may be, for example, a passenger car or a truck. In the vehicle 10, a processing unit 11 may generate output data 12 for controlling several electronic control units 13. For example, each electronic control unit 13 may be connected to a speaker 14 and may drive a corresponding speaker 14. The output data 12 may be, for example, audio data describing an audio signal for an audio playback 15 in the vehicle 10. It may be necessary for the electronic control units 13 to output their respective output data 12 in a coordinated or synchronized manner, for example at the same time or with a specific relative time offset. To this end, the output data 12 may include a timestamp 16 indicating when the corresponding electronic control unit 13 should perform the output or playback of the output data 12. Another example of output data 12 may be control data for controlling an electronic control unit 13 for controlling an actuator, such as a central locking system of the vehicle 10 or an indicator light that should flash synchronously for a left or right turn of the vehicle 10.

[0049] In order to distribute the output data 12 to the electronic control units 13, a digital data bus system 17 may be provided in the vehicle 10, wherein a bus line 18 may connect an electronic control unit 19 to the electronic control unit 13. In conjunction with the data bus system 17, the electronic control unit 19 may operate as a regional head node 20 of a data bus zone Z. The electronic control unit 13 may operate as a bus node 21, which is a bus user that communicates with the head node 20 via the bus line 18. The bus line 18 may be designed such that any electrical signal transmitted via the bus line 18 can be measured or "seen" by each connected node, i.e. the head node 20 and the bus node 21.

[0050] The processing unit 11 may be connected to the head node 20 via a communication link 22. The processing unit 11 may be, for example, an infotainment system and / or a central processing unit of the vehicle 10. From the head node 20, the output data 12 including the time stamp 16 may be distributed or forwarded to the bus node 21 via a bus line 18. The data bus system 17 may be provided, for example, by a 10 Mbit / s Ethernet operating in the multidrop mode already described. Figure 1It is also shown that at least one further or additional bus user 23 may also be present, for example a further electronic control unit.

[0051] When a data packet including output data 12 is transmitted from the head node 20 to the bus nodes 21, it must be taken into account that the data transmission 24 of the output data 12 to the bus nodes 21 results in different propagation delays, depending, for example, on the different length values ​​of the sections of the bus line 18 connecting the head node 20 to the bus nodes 21. Therefore, when output data 12 are sent out with a time stamp 16 for the processing time or the output time, the time stamp 16 must be adapted to the maximum value 25 of the propagation delay occurring in the bus line 18 with respect to the bus node 21 which is to process the output data 12.

[0052] For this purpose, a method for determining the respective propagation delay between the head node 20 and the respective further bus node 21 can be carried out in the data bus system 17 .

[0053] Figure 2 It is shown how the processing unit 11 can operate as a master node M and how the electronic control unit 19 can operate as a slave node S or as a slave node S in a communication link 22. Internally, the electronic control unit 19 can act as a head node 20 for the bus line 18. The control unit 19 can also be the master node M, while the bus node 21 can operate as a corresponding slave node S. However, this is not necessarily the case for the head node. The master node can also be occupied by another control unit.

[0054] For time synchronization, for example, the optimal node GM of PTP can initiate time synchronization by sending out a corresponding data packet or message 27 including a synchronization message Sync and a subsequent message F_up. These messages 27 can be propagated by the head node 20 to the bus nodes 21 via the bus line 18. This can trigger the determination or measurement of the propagation delay in the bus line 18 for each bus node 21.

[0055] Such a synchronization can be triggered, for example, by a triggering event 26 at the end of a production line of a production process of the vehicle 10 or of the data bus system 17 , or by one of the other triggering events 26 already described.

[0056] Figure 3 It shows a technical problem which needs to be avoided when measuring the propagation delay in the bus line 18 .

[0057] exist Figure 3In the illustration of FIG. 1 , it is assumed that one of the bus nodes 21, namely the bus node 29, starts the measurement of the propagation delay by sending or generating a first measurement message 30 Pdelay_req to the head node 20 via the bus line 18 of the data bus system 17. This measurement message 30 will also be received by the remaining bus nodes 31 of the bus node 21. As a reaction 32 to the measurement message 30, the head node 20 can generate measurement messages 33, 34, namely the message Pdelay_resp and the subsequent message Pdelay_resp_F_up, which can be received by the bus node 29, but will also be received by the other remaining bus nodes 31 via the same bus line 18. When the bus node 29 is ready for the measurement of the propagation delay because it has initiated the measurement message 30 itself, the remaining bus nodes 31 will receive the measurement message 30 as well as the measurement messages 33 and 34, which violates the protocol for measuring the propagation delay, i.e. this constitutes a violation of the protocol B. This will lead to a runtime error in the remaining bus nodes 31.

[0058] In the data bus system 17 , this event is avoided or prevented by protecting the respective remaining bus nodes 31 while the bus node 29 and the head node 20 are performing measurements of their propagation delays on their parts or sections of the bus line 18 .

[0059] It should be noted here that any bus node 21 can be operated as a bus node 29 for measuring propagation delays while the remaining bus nodes 21 are to be protected as bus nodes 31 .

[0060] In order to measure the respective propagation delay for all bus nodes 21 , each bus node is operated as a bus node 29 at a time while the other bus nodes 31 are protected.

[0061] Figure 4 It is shown how a measurement cycle 40 is performed for each bus node 21 in order to measure the respective propagation delay between the head node 20 and the specific bus node 29 .

[0062] In the corresponding procedure P1, in a first step S10, the head node 20 may generate at least one wake-up message and send the wake-up message to each bus node 21. In step S11, one of the bus nodes 21 is selected as the selected bus node 29, while the remaining bus nodes 21 are treated as the remaining bus nodes 31 that should not participate in the measurement cycle 40. Note that the bus user 23 or ( Figure 1 ) can also be excluded from this procedure P1, since it will not be influenced by the measurement messages 30, 33, 34. The order of selection of the bus nodes 21 can be determined, for example, according to their respective node IDs and / or the priority of their availability in the data bus system 17.

[0063] In step S11, the remaining bus nodes 31 are switched to the sleep state by sending a corresponding or common sleep message, which can be sent by the head node 20. In step S12, measurement messages 30, 33, 34 can be exchanged between the selected bus node 29 and the head node 20. Since the remaining bus nodes 31 are in the sleep state, they do not react to the measurement messages 30, 33, 34.

[0064] In step S13, the head node 20 may wake up the remaining bus nodes 31 or switch the remaining bus nodes 31 from the sleep state to the awake state by generating at least one wake-up signal. The measurement cycle 40 may then be repeated by selecting the next bus node 21 in the selection order.

[0065] Figure 5 An enhanced version of program P2 providing program P1 is shown. In addition, with respect to measurement cycle 40, it is shown how the first node is selected in step S10 (symbolically shown by node ID=1), and the selection of the corresponding next node is symbolically shown by noting node ID++ (with ++ increment operator).

[0066] In step S14 before the start of the measuring cycle 40, the head node 20 can determine which bus nodes 21 are available or present or active in the data bus system 17. In step S15, it can be determined whether at least one of these bus nodes 21 is already in the sleep state. If none of the relevant bus nodes 21 that should participate in the synchronization process is in the sleep mode (indicated by a minus sign), step S10 can be omitted and step S11 can be started immediately. Otherwise, when at least one bus node 21 is already in the sleep state (indicated by a plus sign), step S15 can be followed by step S10.

[0067] Figure 6 A procedure P3 is shown which allows error handling in the event that the head node 20 receives an unexpected measurement message via the bus line 18 during a measurement cycle 40. This can occur if one of the remaining bus nodes 31 wakes up or changes from a dormant state to an awake state during a measurement cycle 40 of another selected bus node 29, so that the newly woken or started bus node 31 can react to one of the measurement messages 30, 33, 34.

[0068] During step S12 , the head node 20 can receive in step S16 the measurement message 30 Pdelay_req via those selected bus nodes 29 having an identification node ID.

[0069] If it is determined in step S17 that an unexpected measurement message is received, for example another measurement message Pdelay_req as an unexpected measurement message 42 (indicated or symbolized by a plus sign) constituting a protocol violation 34, then the unexpected measurement message 42 can be analyzed in step S18 so that the node ID or identification of the bus node 31 that sent the unexpected measurement message 42 is identified.

[0070] If no unexpected message 42 is received and the measuring cycle 40 continues, but an unexpected measurement message 43 Pdelay_resp and / or Pdelay_resp_F_up is received in step S19, this can also trigger step S18. Once the bus node 31 that has sent an unexpected measurement message 42, 43 is identified, the unexpected message 42, 43 can be ignored or deleted. Since the identity of the bus node 31 is now known, in step S20 the bus node 31 can be switched to the sleep state by sending a sleep message to the bus node 31.

[0071] The measurement cycle 40 may then repeat or continue.

[0072] Figure 7 A procedure P4 is shown for accelerating or shortening the duration of a measuring cycle 40 .

[0073] Figure 7 It shows how the head node 20 can determine the point in time during the measurement cycle 40 at which a wake-up signal 50 can be sent to the bus nodes 31 in the sleep state, so that the head nodes 31 do not reach their wake-up state before the last measurement message 34 is exchanged between the head node 20 and the bus node 29 .

[0074] In step S21, an observation may be started at which point in time a wake-up signal 50 can or may be sent to the bus node 31. In step S22, a measurement message 30 may be received and the bus node 20 may extract a sequence ID 51 which indicates how often the bus node 29 has attempted to initiate a propagation delay measurement so far. Since the received measurement message 30 is a request message for a propagation delay measurement request, in step S23 it may be determined whether an early wake-up flag 52 has been set and whether a reliability criterion 53 regarding data transmission on the bus line 18 is met at the same time. The early wake-up flag 52 may be determined based on procedure P5, which will be described below in conjunction with Figure 8 Further detailed explanation.

[0075] If the early wake-up flag 52 is set and the reliability criterion 53 is met (condition + sign), a wake-up signal 50 can be generated for the bus node 31 in the dormant state in step S24. Otherwise, in case the input is a result from step S22 (receipt of a request message 30), a measurement message 33 can be sent as a reply by the head node 20 in step S25. Again in step S23, it can be verified whether the early wake-up flag 52 is set and whether the reliability criterion 53 is still met. If this is the case, step S24 can be executed, i.e. the wake-up signal 50 can be generated. Otherwise, if a measurement message 33 (response) has been sent, the next step can be step S26, which includes sending a second measurement message 34 to the requesting bus node 29. In the following step S27, the reliability criterion can be verified again and if the connection is reliable (criterion 53 is met), step S24 can be executed. Otherwise, if there is an unreliable connection (minus sign), in step S28 the head node 20 can wait for a predefined delay Pdelay_int 54 with an optional further tolerance value Tol to wait if the last measurement message 34 has arrived. This can be verified in step S29, since if the last measurement message 34 has not arrived, the bus node 29 can send another measurement message 30 requesting a measurement of the propagation delay. If such a measurement message 30 is received and it includes or contains the same sequence ID 51, this indicates that the measurement message 34 was lost or destroyed on the bus line 18, so that the measurement cycle was not completed. In this case (plus sign), the measurement cycle can include a repetition 60 of the measurement. Otherwise (minus sign), the last measurement message 34 has been received and in step S24 a wake-up signal 50 can be sent or generated.

[0076] Figure 8 It is described that step S23 ( Figure 7 ) is part of program P5.

[0077] In step S30, the head node 20 may start observing the remaining time or the time that has elapsed so far in the corresponding measurement cycle 40. Step S30 may be started simultaneously and in parallel with step S21. In step S31, the minimum value 55 of the wake-up time T_W may be determined as the start-up time T_Auf, the time to establish the protocol stack for the measurement protocol PTP, the time required to transmit the measurement messages 30, 33, 34, and the time required to transmit the measurement messages 30, 33, 34. and the sum of the time T_Wup for sending the wake-up signal 50. In step S32, the reaction time of the head node 20 after receiving the measurement message 30 (request for measurement of the propagation delay) can be calculated as a reaction time 56T_R, which is the sum of the delay time T_del elapsed between the two measurement messages 33 and 34 and the initial reaction time T_resid elapsed between receiving the measurement message 30 and sending the first measurement message 33.

[0078] In step S33, it may be determined whether the minimum value 55 of the wake-up time T_W is greater than the total reaction time T_R. In this case, a wake-up signal 50 may be sent at the beginning of the wake-up cycle 40. Therefore, an early wake-up flag 52 may be permanently set in step S34.

[0079] If it is determined in step S33 that the minimum value 55 of the wake-up time T_W is less than the total reaction time 56, it can be determined in step S35 whether the minimum value 55 of the wake-up time T_W is greater than or longer than the time T_del that has elapsed after the first measurement message 33 has been sent from the head node 20. If this is the case (plus sign), then after the first measurement message 33 has been sent from the head node 20, the early wake-up flag 52 can be set in step S34 (see Figure 7 , step S25 leads to step S23).

[0080] If the minimum value 55 of the wake-up time T_W is even shorter or smaller (negative sign) than the reaction time T_del, the early wake-up flag 52 can be set permanently in step S36 , since it is not possible to generate a wake-up signal 50 in the measuring cycle 40 before the last measurement message 34 was sent.

[0081] Fig. 9 Lists the available Figure 8 The time values ​​used in procedure P5.

[0082] The startup time T_Auf can be determined as the time that the physical connector PHY of the bus node needs to start up after receiving the wake-up signal 50. The setup time for establishing the PTP stack, i.e. the time value T_PTP, is the time for implementing or loading or establishing the stack for sending measurement messages and receiving measurement messages 30, 33, 34 in the memory. T_Auf and T_PTP may be configuration values ​​stored in the data storage device or memory of the head node 20. Transmission time for transmitting the configuration messages 30, 33 and / or 34 It may be estimated based on the timestamp in the message and / or may be measured in a laboratory and the measurements may be stored in the head node 20 . The time value of may be, for example, a worst-case value determined for the shortest possible transmission time, so that it can be used independently of the actual or current topology of the data bus system 17. The reaction time value T_del which elapses between two response measurement messages 33 and 34 may be an estimated value or may be a value taken from the software which generates the two measurement messages 33, 34.

[0083] The transmission time value T_wup required for transmitting the wake-up signal 50 may be an estimated value or a worst-case value, ie the shortest possible value that may occur in the data bus system 17 .

[0084] The reaction time T_resid which elapses between the reception of the measurement message 30 and the sending of the reply measurement message 33 may be an estimated value or a measured value which may be determined using a prototype of the head node 20 .

[0085] Fig.10 1 shows a procedure P7 which shows the resulting early wakeup 70. As an example and for illustration purposes only, assume that the head node 20 has selected the bus node 29 with node ID 2. Another bus node 31 with exemplary node ID 3 is initially in a dormant state. As time t passes, the bus node 29 will send a measurement message 30 requesting a measurement of the propagation delay. In the head node 20, in step S22 (see Figure 7 ) will receive a measurement message 30, and if in step S23 ( Figure 7 ) determines that the early wake-up flag 52 is set and the reliability criterion 53 is met, the head node 20 can perform step S24 before sending the reply measurement message 33, that is, the wake-up signal 50 is sent to the sleeping bus node 31, that is, the bus node 31 in the sleeping state. Once the wake-up signal 50 arrives at the bus node 31, the wake-up time T_W will pass until the bus node 31 is ready or in the awake state 71 (PTP_Rdy).

[0086] At the same time, two reply measurement messages 33 and 34 can be sent by the head node 20 via the bus line 18 to the bus node 29. The last measurement message 34 will arrive at the bus node 29 before the bus node 31 reaches the awake state 71.

[0087] The overall task is therefore to create a (preferably cost-neutral, secure and fast) solution for the next generation of vehicles that allows time synchronization (in multidrop mode) at 10 Mbit / s without using proprietary (and possibly expensive) implementations of existing solutions. The quality (and therefore the test environment) can still remain unchanged. The present concept proposes a method capable of calculating the runtime based on the current standard IEEE802.1AS2021 (or IEEE802.1AS2012).

[0088] Using smart startup of the network, the procedure ensures that only one additional node is active at any given time. The runtime measurement is performed almost exclusively when this one node is active. After this measurement, the measurement is then performed with the other node. See also Procedure 1 for the general procedure.

[0089] The present concept proposes a procedure that checks the status of multiple bus nodes (multiple nodes / controllers / sensors) of a network at specified time points (e.g., end of band, ignition signal / terminal 30, after software update, after vehicle network change, after adding new resources), and then ensures that all nodes are in an awake state.

[0090] After that, all nodes not in the row are selectively put to sleep. Exactly one node is always kept awake, and the runtime measurement is then performed with this node (in compliance with the standard). After successful execution, the remaining nodes are woken up and exactly those nodes that do not have to be configured anymore or are not in the row are put to sleep. This process is repeated until all configurations are complete.

[0091] The essence and special feature and difference of this concept is the scheme with standardized methods and protocols. This also creates backward compatibility with software stacks in use as well as new stacks. It is advantageous to combine time synchronization with intelligent wake-up and sleep methods. In this state, the network can be configured and initially set up completely independently of its topology. Therefore, the process is completely independent of the Ethernet technology used. This is also advantageous because it is a completely silent or transparent configuration and in the best case, the communication partners do not notice anything and no special hardware or protocols are required. In addition, the process provides a very fast mode optimized for network startup time.

[0092] In a preferred embodiment, the concept proposes a method in several sub-steps, which makes it possible to perform time synchronization separately so that the runtime measurement can be performed even with a 10 Mbit / s bus which is not actually compatible. The problem of network startup time is solved in particular in procedures P4 to P7. According to the OPEN Alliance TC10 standard, the wake-up pulses under / over 10 Mbit can be distributed in a few microseconds. Usually 2 microseconds. Since this is a bus, everyone can be woken up very quickly. In addition, few nodes are connected to the 10 Mbit / s bus, which means that the total configuration time will not be too long.

[0093] Program P2 may be repeated cyclically at initial startup, at the end of band programming, run after inserting new hardware, or triggered by an application program, or run in different states.

[0094] The process according to process P2 is controlled by the so-called head node (master node of the bus) (see Figure 1). This first determines its participants on the bus. This can be done by pre-configuring or listening to the bus.

[0095] Next, the head node determines whether all nodes on its bus are awake or able to receive Ethernet frames. This can be done by polling, query entries, physical measurements, etc. In this case, it is not important to detect how many nodes are sleeping, but whether all nodes are awake. If not all nodes are awake, the head node initiates the wake-up of all nodes. (All nodes are awakened because this complies with the OPEN Alliance TC10 standard. If there is another wake-up procedure, this is of course also possible). This can be done by a so-called wake-up pulse according to OPEN Alliance TC10 (standardization is almost completed in May 2021) or by a similar pulse that will be detected by passive signal detection. It has no decisive role in which mechanism is woken up. This can also be done via additional lines (such as CAN).

[0096] The sleeping nodes must also be woken up first, so that they can be deliberately put into sleep state and not woken up (participating in the bus again) during runtime measurement.

[0097] In the next step, nodes (control units, etc.) that do not need to be configured or that do not participate in time synchronization are put into sleep mode again. This is ensured by a higher protocol. Nodes that do not participate in time synchronization can remain awake. The program then determines the node (node ​​ID) that has not yet been configured (performs runtime measurement) and has the smallest node ID. This node is not put into sleep mode.

[0098] There are other selection mechanisms for selecting the next node. It may also be applicable to decide that some nodes are more important (configured earlier) than others, and the node ID sequence does not play a role. If it is a fast start for example, the order of configuration may depend on which nodes must be synchronized first.

[0099] In the next step, the line delay is determined (default), and after sending Pdelay_Follow_up, waking up all nodes can start immediately.

[0100] See attached: Program P3: Error Handling

[0101] Procedure P3 shows how the procedure ensures when errors occur during the process. The procedure presented above allows only one node to be configured at a time. However, if several PDelay_req messages arrive from different receivers, or a PDelay_req message arrives from an unexpected receiver (one that should be dormant), then this must be recorded and the measurement aborted. Abort means that no more responses to the measurement are sent. In addition, it is recorded which node (node ​​ID) is still awake. This or these nodes are then selectively put to sleep and the measurement is restarted, or the Pdelay_req of the node that is still awake is responded to appropriately.

[0102] If another node reports during this runtime measurement, the measurement itself is not discarded. The misbehavior of another node has no direct impact on the node the measurement was made against. Therefore, there is no need to start / measure from scratch.

[0103] Programs P4 and P5 shorten the synchronization time (for wake-up).

[0104] Program P5 shows a section of the method in which it is determined how long the wakeup process takes and with which it is determined at which time of the runtime measurement the wakeup can already begin. The wakeup comprises several steps, such as path signaling, wakeup of the transceiver and start-up of the PTP stack.

[0105] Procedure P6 determines the relevant parameters for the determination in procedure P5.

[0106] Program P4 shows a program using the result of program P5. After receiving the Pdelay_req message, the program detects, for example, whether other nodes can be woken up, having already been checked. Here, it is always important that the fastest node (which also implements PTP and activates it) sets the measurement. If the start-up time until PTP is ready (PTP_ready) is greater than the process in the head node, it can be woken up immediately. PTP messages do not disturb the node that has just been woken up.

[0107] If you want to be sure that the Pdelay_resp and Follow_up messages have arrived, you have to wait on a timer or check for the next Pdelay request message. Only in this case are all nodes woken up. This process step allows strong optimizations regarding the synchronization of all nodes (respectively runtime measurements) because everything is done in parallel.

[0108] Showing the program P7 Fig.10Again the sequence from program P4 is graphically represented. Shown here is a parallel wakeup of the runtime measurement, which is theoretically possible in practice, using values ​​from OPEN Alliance TC10, with boot times compliant with IEEE802.3 automotive PHY.

[0109] Here are a few timings to illustrate the speed of this process and the possibility of parallel wakeups:

[0110] Forwarding wake-up pulse to all nodes: 2 microseconds maximum

[0111] PHY wake-up time is less than 100 ms (typically 30 ms-60 ms)

[0112] PTP stack ready in about 10-60 ms (can be done in parallel with PHY wake-up)

[0113] Scheduling Pdelay_req = 0.54 microseconds

[0114] Response Pdelay_resp and resp_follow_up are less than 10 ms (typically less than 2 ms)

[0115] Schedule Pdelay_resp = 0.54 microseconds

[0116] Schedule Pdelay_resp_follow_up = 0.54 microseconds

[0117] Normally, synchronization of a network (<8 nodes) can therefore also be completed within 1 second. This compares / enables the long waiting times for parallel wake-up and synchronization and also enables typical wake-up times in cars. If this is done at the end of a production line or during a system update, the time required here is not critical.

[0118] This idea and the resulting product are of particular interest to the automotive industry, as the topic of time synchronization is of great importance in vehicles and becomes even more important during sensor processing.

[0119] The core and novelty of this concept is that standardized methods can continue to be used, so that the car will continue to develop and become an IoT device (Internet of Things). This guarantees better maintenance, more possibilities for purchasing (standardized) software, and compatibility with IT protocols, methods and tools.

[0120] Standardized (and proven) methods also increase the security of the vehicle network and prevent it from deteriorating. Software quality can also be better ensured because the methods used have been tested and are in use.

[0121] This concept also made it possible to implement time synchronization for this standard in the first place. By using 10 Mbit / s in conjunction with time synchronization, we hope to achieve a more consistent IP (Internet Protocol) network, add another level of scalability to the onboard network architecture, and eliminate unnecessary risks such as relying on only one vendor.

[0122] As things stand, there is also the risk that further production lines (additional CANs) would have to be added to solve this problem. This is associated with higher system costs.

[0123] One advantage of this concept comes from the intelligent combination of different standardized procedures. By "powering off" the nodes (sleeping state) when performing runtime measurements, it is ensured that the protocol does not go into reset.

[0124] The retention of a standardized protocol enables the industry-wide use of time synchronization without the knowledge of the entire procedure. This allows the actual synchronization to be separated from the intelligent procedure of wake-up and parallel time synchronization.

[0125] Advantageously, the safety of the vehicle can be significantly and very simply increased by this concept, especially without additional financial expenditure. Proprietary solutions can be bypassed. With the use of the newly introduced Ethernet protocol in the car, it is necessary to utilize simple technology and mechanisms with given technical properties so that expensive implementation and further additional hardware can be dispensed with. The network system according to this concept is improved in terms of cost and reliability.

[0126] Overall, this example shows a method of how to provide time synchronization in a 10 Mbit / s Ethernet data bus.

[0127] Reference numerals

[0128] 10 Motor Vehicles

[0129] 11 Processing Units

[0130] 12 Output data

[0131] 13 Electronic Control Unit

[0132] 14 Speakers

[0133] 15 Replay

[0134] 16 Timestamp

[0135] 17Data bus system

[0136] 18 bus lines

[0137] 19 Electronic Control Unit

[0138] 20 head nodes

[0139] 21 bus nodes

[0140] 22 Communication Links

[0141] 23 bus users

[0142] 24Data transmission

[0143] 25Maximum

[0144] 27 messages

[0145] 29 Selected Nodes

[0146] 30 Measurement information

[0147] 31 remaining nodes

[0148] 32 Responses

[0149] 33 Measurement information

[0150] 34 Measurement information

[0151] 40 measurement cycles

[0152] 42 Accidental measurement information

[0153] 43 Accidental measurement information

[0154] 50 Wake-up signal

[0155] 52 wake-up sign

[0156] 53 Reliability Standards

[0157] 55Minimum

[0158] 56 Reaction time

[0159] 60 repetitions

[0160] 70 Early wake-up

[0161] 71 wake-up state

Claims

1. A method for determining a respective propagation delay between a head node (20) on one side and a plurality of other bus nodes (21) on the other side of a data bus system (17), the determination of the respective propagation delay comprising the exchange of predetermined measurement messages (30, 33, 34), the method comprising causing the head node (20) to successively perform respective measurement cycles (40) in order to determine the respective propagation delay, the method comprising: include: selecting one of the bus nodes (29) for each measuring cycle (40); as well as By means of at least one sleep message, each of the remaining bus nodes (31) of the bus nodes is switched from a wake-up state (71), in which the bus node (31) responds to measurement messages (30, 33, 34), to a predetermined sleep state, in which the bus node (31) remains unresponsive to measurement messages (30, 33, 34); and determining a propagation delay between the head node (20) and a selected bus node (29) by exchanging measurement messages (30, 33, 34); and Each remaining bus node (31) is activated from a sleep state by means of at least one wake-up signal (50).

2. The method according to claim 1, in, Before a first measurement cycle (40) and / or between each measurement cycle (40), the head node (20) determines whether all bus nodes (21) are in the awake state (71), and if it is determined that at least one of the bus nodes (21) is in the sleep state, the at least one bus node (21) is switched to the awake state (71) by means of an additional wake-up signal (50).

3. The method according to any one of the preceding claims, in, In a corresponding measurement cycle (40), measurement messages (30, 33, 34) are exchanged according to a predetermined protocol, and when a measurement message (42) contrary to the protocol is received during the corresponding measurement cycle (40), a bus node (21) that performs transmission is identified based on the measurement message (42) contrary to the protocol, and the bus node (21) that performs transmission is switched to the sleep state by means of an additional sleep message.

4. The method according to claim 3, in, The measurement cycle (40) is repeated or the next measurement message (30, 33, 34) in the sequence is sent according to the protocol.

5. The method according to any one of the preceding claims, in, During a corresponding measurement cycle (40), the at least one wake-up signal (50) is sent in advance before a last measurement message (30, 33, 34) of the measurement cycle (40) is sent.

6. The method according to claim 5, in, For all bus nodes (21) or all bus nodes (21) currently in a sleep state, a minimum value (55) of the wake-up time is determined, which minimum value is the time elapsed from sending a wake-up signal (50) to the fastest bus node (21) until the fastest bus node (21) reaches the awake state (71), and the early sending of the wake-up signal (50) only occurs when the minimum value (55) is greater than the remaining duration required for the complete exchange of the expected measurement message (30, 33, 34) plus a predetermined processing time value associated with the currently selected bus node (21).

7. The method according to claim 5 or 6, in, The early transmission occurs only if a data transmission is detected for the data bus that meets a predetermined reliability criterion (53).

8. The method according to any one of claims 5 to 7, in, The early sending only takes place if an exchange of measurement messages (30, 33, 34) has already taken place according to the protocol, otherwise the measurement cycle (40) is repeated.

9. The method according to any one of the preceding claims, in, In a data bus, the head node (20) and the bus nodes (21) are connected to a common bus line (18), and any message on the bus line (18) reaches every other bus node (21).

10. The method according to any one of the preceding claims, in, After determining the propagation delay, the head node (20) sends at least one data packet with output data (12) to be processed and / or output by the bus node (21), wherein the data packet contains the output data (12) and a timestamp (16) of a corresponding output time, the output time being determined according to the determined maximum propagation delay so that the output time falls in time after the expiration of the propagation delay.

11. The method according to any one of the preceding claims, in, The determination of the propagation delay is initiated upon detection of at least one predetermined triggering event.

12. The method according to any one of the preceding claims, in, At least one further bus user (23) is additionally connected to the data bus, which at least one further bus user (23) is excluded from determining the propagation delay and therefore does not respond to the measurement messages (30, 33, 34), and each further bus user (23) remains excluded from switching to sleep mode during a measurement cycle (40).

13. A bus node (21) adapted to operate as a head node (20) of a bus system, in, The bus node (21) comprises a processor unit adapted to perform the method according to any of the preceding claims.

14. A data bus system (17) for a vehicle, the bus system comprising a head node (20) and a plurality of other bus nodes (21), in, The head node (20) is designed according to claim 13 and / or the data bus system (17) is suitable for executing the method according to any one of claims 1 to 12.

15. A motor vehicle (10) comprising a bus system according to claim 14.