This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DP83640: IEEE1588v2PTP ; time synchronization message.

Guru 10165 points
Part Number: DP83640
Other Parts Discussed in Thread: AM6548,

Hi Support Team,


IEEE1588v2PTP requires a time synchronization message.
In addition to this message, I would like to send and receive application data.

Q1. Is there any reference available on the time required for the time synchronization message
and the time available for sending/receiving application data (e.g., the transfer volume)?

Q2. Also, regarding the time synchronization message,
 I have the following image Is it possible to send application data in this way?

Best regards,
Kanae

  • Hi Kanae,

    1. I found two resources, please see PDF and E2E Post below 

    https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/350837/tiva-tm4c1294-ieee-1588-app-notes-and-example-code

    snla098a.pdf

    2. I am not sure where that image is from, the image is slightly too vague to tell you if it is appropriate or not. Where is the formation of the typical ethernet packet? What does a 1588 packet entail?

    Best,

    Alon

  • Hi Alon,

    Thank you for your reply.
    I will post answers to your questions here after I confirm them with my customer.
    Your continued support will be greatly appreciated.

    Best regards,
    Kanae

  • Hi Kanae,

    Sounds good, looking forward to hear back.

    Closing thread for now. 

    Best,

    Alon

  • Hi Alon,

    Regarding Q2, I confirmed the details with the customer as follows.


    What I wanted to ask was, in order to perform time synchronization with PTP,
    I send and receive time synchronization messages at regular intervals between master and slave,
    but is it possible to send other data in addition to these messages?
    Is it possible to send and receive other data in addition to the time synchronization messages?

    In addition, please let us know if there are any documents that can be used as references or
    if there are any details that can be understood regarding the following.

    1. Regarding time synchronization messages, how much time occupancy should we estimate?
     I think it depends on the setting, but I would like to have some data for reference.

    2. How much does sending data other than time messages affect the synchronization accuracy?

    3. How much data other than synchronization messages can be transferred by the combination of AM6548 and DP83640?


    The following is my understanding of "time synchronization messages".

    (1) In SNLA098A (AN-1728 IEEE 1588 Precision Time Protocol Time Synchronization Performance),
    there is a table of Test Conditions, where IEEE 1588 PTP Synchronization Interval: 1 second.
     I assume that a time synchronization message ( packets of IEEE 1588) is sent and received
    between the master and the slave every 1 second.

    (2) For the time synchronization messages, see Figure 1, Basic PTP Timing Diagram in SNLA116A (AN-1963 IEEE 1588 Synchronization Over Standard Networks Using the DP83640).
    Timing Diagram, I think that Sync and Delay_Req, etc. occur every second between the master and
    the slave when IEEE 1588 PTP Synchronization Interval: 1 second is set in (1).
     
    These "packets" such as Sync and Delay_Req are called "time synchronization messages"
    are called "time synchronization messages".


    If you need other details, please let me know.

    Best regards,
    Kanae

  • Hi Kanae,

    Your understanding here is good but it is not complete. 

    The PTP aspect is separate from the data packets sent. Upon linkup with 1588 enabled and working, a time sync packet is sent between both nodes. On the time sync packet there is no data, as the only purpose of the time sync packets is to synchronize the nodes. Once both nodes are running on 'synched' time, then you are able to do the PTP aspect of 1588. 

    Every given packet does not have its own time sync bits, rather the nodes are synced and all packets are PTP. 

    Please let me know if this clear up the confusion. 

    Best,

    Alon  

  • Hi Alon,

    Thank you for your reply.

    I am sorry that the question is not clear.

    The following Renesas microcontrollers: RX64M, etc., support the IEEE1588 function for Ethernet communication,
    which can be used to generate the 51.2KHz, 102.4KHz, 204.8KHz, 409.6KHz, and 819.2KHz signals required for sensor control.

    My customer would like to confirm whether this functionality can be realized with the AM6548 and DP83640.

    Sensor Synchronization
    As shown in the figure below, the above signals can be synchronously output using PLD in a daisy chain configuration
    with one grandmaster (GM) at each end, one slave (SO) at the other end, and two boundary clocks (BC) in the middle.

    Each microcontroller is connected to each other via 100 Mbps Ethernet, so sensor control data and sensing data can be transferred.
    The PC control shown in the figure above can be used to collect and analyze the highly accurate time-synchronized sensing data
    collected by each microcontroller on the PC.
    The daisy chain configuration is expected to be applied to various sensor networks.

    When using DP83640, the signals at 51.2KHz, 102.4KHz, 204.8KHz, 409.6KHz, and 819.2KHz
    are supposed to be changed to PPS (Pulse-Per-Second).

    As shown in the figure below, it we would be like synchronizing the main units (1) to (4) with PTP
    while also communicating data between the main units (1) to (4).

    Question:
    Is it possible to send other data other than synchronization messages (packets) with AM6548 and DP83640?

    Please let us know if there are any unclear points.

    Bets regards,
    Kanae

  • Hi Kanae,

    I appreciate the block diagram, if I understand your question correctly, then the answer is yes, you would be able to send data packets between AM6548 and DP83640.

    Are you asking whether those packets have to be within the 1588 v2 PTP protocol, no, because not every link partner is 1588 enabled.

    As far as I understand 1588v2, the time sync packets are meant for syncing the nodes only, and do not care data with them. 

    I hope I have answered you question, let me know if I missed something. 

    Best,

    Alon

  • Hi Alon,

    Thank you for your reply and I shared it with my customer.

    From the reply we received, my customer wants to use the time synchronization packets only to synchronize the nodes
    and to send and receive data packets separately from the time synchronization packets.
    In other words, customer is of the opinion that data packets are different from time synchronization packets and
    therefore do not need to be synchronized.

    My customer thinks that the IEEE1588v2 function can be used to synchronize the clocks of each device
    while communicating between devices (data transfer over a LAN), and that this is achieved by the previous explanation
    I posted about the function of Renesas microcontrollers: RX64M and other microcontrollers.

    Is it not possible to realize the above functionality that the customer is considering using a combination of AM6548 and DP83640?
    If not, customer will look for another method or another company's product, if you have any idea to realize it with TI products, please suggest.

    Note that Dante (YAMAHA) for audio can also be synchronized with PTP and data communication (audio signals) can also be executed,
    so as a customer, it is hoped that there is some way to achieve this.

    Best regards,
    Kanae

  • Hi Kanae,

    Your understanding is semi correct, its the nodes that are synced, not every packet, but if two nodes have a synced clock, then all packets can have PTP. 

    Nevertheless, in regards to your question,

    Is it not possible to realize the above functionality that the customer is considering using a combination of AM6548 and DP83640?

    It is possible, there should not be any problem using this combination with or without 1588V2 enabled. 

    Best,

    Alon 

  • Hi Alon,

    Thank you for your reply.
    I will share it with the customer that it is the nodes that are synchronized, not all packets,
    but if two nodes synchronize their clocks, it is possible to have PTP on all packets.

    Alon said:
    It is possible. With this combination, it should not matter if 1588V2 is enabled or not."

    Please allow me to confirm your answer.
    The "the above functionality" that I mentioned in the above post refers to the configuration shown in the figure below, which I posted earlier.


    As shown in the figure below, it we would be like synchronizing the main units (1) to (4) with PTP
    while also communicating data between the main units (1) to (4).


    Since the customer wants to use the high-precision system synchronization function of IEEE-1588 Precision Time Protocol (PTP) to achieve this,
    I do not understand the intent of your answer (there should be no problem even if 1588V2 is not enabled).

    How do you actually realize the high precision system synchronization function of PTP with the combination of AM6548 and DP83640
    without 1588V2 enabled?

    Best regards,
    Kanae

  • Hi Kanae,

    You have the option to run 1588V2, but it is not mandatory, you can still send data packets, they just wont be PTP.  

    How do you actually realize the high precision system synchronization function of PTP with the combination of AM6548 and DP83640
    without 1588V2 enabled?

    If 1588V2 is not enabled, you wont have PTP, you need 1588V2 enabled. 

    If you still have a follow up question, please try to make it more succinct as it is difficult to capture the bottom line of your query.

    Best,

    Alon 

  • Hi Alon,

    Thank you for your reply.

    I will simplify my question.
    Is it correct to understand that the combination of AM6548 and DP83640 can be used to realize
    the high precision system synchronization function of PTP by enabling IEEE1588v2 (PTP)
    on each device, since the datasheet states as below?

    AM6548:.
    - One Gigabit Ethernet (CPSW) interface supporting
    - RMII (10/100) or RGMII (10/100/1000)
    - IEEE1588 (2008 Annex D, Annex E, Annex F)
    with 802.1AS PTP

    DP83640:
    - IEEE 1588 V1 and V2 Supported

    Best regards,
    Kanae

  • Hi Kanae,

    I will simplify my question.
    Is it correct to understand that the combination of AM6548 and DP83640 can be used to realize
    the high precision system synchronization function of PTP by enabling IEEE1588v2 (PTP)
    on each device, since the datasheet states as below?

    From the Ethernet team side, yes the Ethernet PHY will do this.

    You need to reach out to the MCU team for the AM6548 and confirm with them that

    IEEE1588 (2008 Annex D, Annex E, Annex F)
    with 802.1AS PTP

    means PTP enabled. 


    I am unable to comment on the abilities of the AM6548. 

    Best,

    Alon

  • Hi Alon,

    Thank you for your reply.
    I understand that on the Ethernet side, it is possible to achieve this with DP83640.
    As for AM6548, I will check with the MCU team on the Processor forum.

    Best regards,
    Kanae