mpthompson / stm32_f4_ptpd

IEEE 1588 PTP daemon for STM32 F4 Discovery board
73 stars 59 forks source link

PTP- Why clock is updated after the Follow-up but not after Delay response packet. #8

Open srivallik-eaton opened 4 months ago

srivallik-eaton commented 4 months ago

Hi,

I am using nucleo STM32H743zi controller. I am using linux machine as host and my controller as slave in E2E mode. I have used DHCP mode. I have below few questions for which I was unable to find answers for: It will be really helpful if I can get answers to these questions.

  1. Why is the internal timing or the clock updated soon after the Follow-up message is received. Should not the clock be updated after delay response is received from master. (in protocol.c, function name: handleFollowUp( ))

  2. Since the sequence ID is int16_t it is storing negative sequence numbers. (in datatypes.h)

  3. Is there any work-around the internal time exceeding the integer limit after 2038. (in arith.c)

Thank you