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.

TDA4VM: TDA4VM Time synchronization of two pcs tda4

Part Number: TDA4VM

hi expert

sdk8.2 qnx + rtos

Please help solve the problem when we use two tda4s for clock synchronization

tda4-1 can acquire the external network clock and synchronize successfully. To enable tda4-2 to also acquire the external network clock, change the ptp working mode of tda4-1 to TIMESYNC_ BOUNDARY_ CLOCK and changed portmask Number.This change is valid. Both soc1 and soc2 can obtain the network timestamp

ptpConfig->deviceMode           = TIMESYNC_BOUNDARY_CLOCK;//TIMESYNC_ORDINARY_CLOCK 

ptpConfig.portMask = 0x0c; 

However, this change requires the master of clock synchronization to start after the Ethernet configuration of MCU 2-0 is completed

TIMESYNC_ORDINARY_CLOCK mode has no such requirement. Time synchronization can be completed no matter which is started first1

1.Whether my changes meet the requirements

2.If the change is OK, is there a way to solve the problem of running successively

  • Hi Zhang,

    Can you please provide more details about your test environment (which is grand master, tda4 connections, and ptp stacks running at each ptp devices in network). 

    Are you facing any synchronization issue when both tda4 devices configured in TIMESYNC_ORDINARY_CLOCK?

    As per my understanding, even in case of ordinary clock configuration also time sync will happens after MCU2-0 configuration.

    Best Regards,
    Sudheer

  •  hi expert 

    thanks for your reply

    I use the official configuration TIMESYNC_ORDINARY_CLOCK 

    ptpConfig.portMask = MAC3 ->SGMII3

    ptp grand  master is pc

    pc -> sja1110 -> tda4's sgmii3 mac3;

    If I configure the pvid vid and other parameters of sja1110 ,tda4 error rx eveny ->timestamp loopevent  portnum2 

    if i doesn't  configure the pvid vid tda4 ptp is ok ,timestamp loopevent  portnum is 3

    In this case, can I think that there is a problem with the portnum configuration of sja1110

  • Hi Zhang,

    >>If I configure the pvid vid and other parameters of sja1110 ,tda4 error rx eveny ->timestamp loopevent  portnum2
    I think you are trying ptp with VLAN, by default Ethfw is configuring PTP without VLAN (means untagged ptp), also we haven't tested ptp with VLAN.
    So, you can test ptp without VLAN. I think in this case you are not seeing any issue.

    Also, ptp stack which is supported in SDK is just for testing and validation not for any production support.

    Best Regards,
    Sudheer