How to get Geth Tx timestamp in TC377?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
miao
Level 1
Level 1
10 sign-ins 5 replies posted First reply posted

Hello,

    I enable MAC timecstamp but get tx timestamp always 0.

    Could anyone tell me how to get tx timestamp after send ptp pack over ethernet?

Thank you

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi miao,

Attached is geth demo code for timestamp enabled.  Please refer to it.

Regards,

dw

View solution in original post

0 Likes
5 Replies
lock attach
Attachments are accessible only for community members.
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi miao,

Attached is geth demo code for timestamp enabled.  Please refer to it.

Regards,

dw

0 Likes
rpk
Level 1
Level 1
First reply posted Welcome!

I too am in the process of enabling time stamping on the Aurix TC3XX. In the example you provided I saw a comment that mentions

System Time Update logic requires a 50-MHz clock frequency to
achieve 20-ns accuracy, 50MHz clock is internal to GETH-IP


Does the mean that the PTP system clock will always update at 50MHz - i.e the System Time Nanoseconds register will accumulate the value from Sub-Second Increment register (SSINC) at 50MHz?

Is it possible to change the update frequency to a value other than 50MHz, and if so how?

0 Likes
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

Hi rpk,

AURIXTC3XX_ts_V1.3.0.PDF

You can check 36.2.2.4 Time Stamp Error Margin and 36.2.2.5 Frequency Range of Reference Timing Clock.

dw

0 Likes
rpk
Level 1
Level 1
First reply posted Welcome!

Hi dw,

Appreciate the quick response. How can I gain access to the doc you mentioned?

0 Likes
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored
0 Likes