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.
We are trying to develop some distributed DAQs that will connect to eachother only via network. TSN
To assure at least a relative synchronism of signals across the network we would like to timestamp samples properly so
once all data is aggregated we know, relative to eachother, when each sample was acquired.
Do you have any sample code or literature to point us to that could be helpful?
If you are looking to do this in the R5, the example currently is https://software-dl.ti.com/mcu-plus-sdk/esd/AM64X/latest/exports/docs/api_guide_am64x/EXAMPLES_ENET_LAYER2_MULTI_CHANNEL_PTP.html . There will further TSN gPTP examples coming in SDK releases during 2023.
In Linux the open source building blocks linuxptp, ptp4l, testptp, phc2sys are a good starting point. The SDK has some examples at https://software-dl.ti.com/processor-sdk-linux/esd/AM64X/latest/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/Network/CPSW-PTP.html?highlight=linuxptp .
Pekka