Thanks Richard.

So, PARENT_DATA_SET has all the information about grand master?

Regards,
Jawad
________________________________
From: Richard Cochran <richardcoch...@gmail.com>
Sent: Wednesday, January 15, 2020 11:25 PM
To: jawad ahmed saleemi <jawad.sale...@hotmail.com>
Cc: linuxptp-users@lists.sourceforge.net <linuxptp-users@lists.sourceforge.net>
Subject: Re: [Linuxptp-users] PMC GET commands

On Wed, Jan 15, 2020 at 03:06:24PM +0000, jawad ahmed saleemi wrote:
> Is there a documentation which explains what all these different PMC GET 
> commands return?

With the exception of the custom NP TLVs, these are standard
management messages documented in IEEE 1588.

> For example, what does the data returned in GET PARENT_DATA_SET
> mean? There is gm.ClockClass field in returned data which is not the
> same as clockClass field returned in GET
> GRANDMASTER_SETTINGS_NP. Can you please explain what is the
> difference?

The GRANDMASTER_SETTINGS_NP are the values used if the local clock
becomes the GM.  Below are my notes about the various TLVs.

HTH,
Richard


* CURRENT_DATA_SET
  stepsRemoved     0
  offsetFromMaster 0.0
  meanPathDelay    0.0

* PARENT_DATA_SET
# find out the GM identity
  parentPortIdentity                    e89a8f.fffe.74f796-0
  parentStats                           0
  observedParentOffsetScaledLogVariance 0xffff
  observedParentClockPhaseChangeRate    0x7fffffff
  grandmasterPriority1                  128
  gm.ClockClass                         248
  gm.ClockAccuracy                      0xfe
  gm.OffsetScaledLogVariance            0xffff
  grandmasterPriority2                  128
  grandmasterIdentity                   e89a8f.fffe.74f796

* TIME_PROPERTIES_DATA_SET
# find out whether time is globally traceable
  currentUtcOffset      35
  leap61                0
  leap59                0
  currentUtcOffsetValid 0
  ptpTimescale          0
  timeTraceable         0
  frequencyTraceable    0
  timeSource            0xa0

* PORT_DATA_SET
# knowing the portState can be useful, SLAVE and MASTER
  portIdentity            e89a8f.fffe.74f796-1
  portState               FAULTY
  logMinDelayReqInterval  0
  peerMeanPathDelay       0
  logAnnounceInterval     1
  announceReceiptTimeout  3
  logSyncInterval         0
  delayMechanism          1
  logMinPdelayReqInterval 0
  versionNumber           2

* GRANDMASTER_SETTINGS_NP
# values used when nodes becomes the GM
# SET action useful for GPS time server
  clockClass              248
  clockAccuracy           0xfe
  offsetScaledLogVariance 0xffff
  currentUtcOffset        35
  leap61                  0
  leap59                  0
  currentUtcOffsetValid   0
  ptpTimescale            0
  timeTraceable           0
  frequencyTraceable      0
  timeSource              0xa0

* DEFAULT_DATA_SET
# discover the numberPorts
  twoStepFlag             1
  slaveOnly               0
  numberPorts             1
  priority1               128
  clockClass              248
  clockAccuracy           0xfe
  offsetScaledLogVariance 0xffff
  priority2               128
  clockIdentity           e89a8f.fffe.74f796
  domainNumber            0

* AVB...

* TIME_STATUS_NP
# designed for use with gPTP and free_running
  master_offset              0
  ingress_time               0
  cumulativeScaledRateOffset +0.000000000
  scaledLastGmPhaseChange    0
  gmTimeBaseIndicator        0
  lastGmPhaseChange          0x0000'0000000000000000.0000
  gmPresent                  false
  gmIdentity                 e89a8f.fffe.74f796

* PORT_DATA_SET_NP
# gPTP: SET neighborPropDelayThresh and GET asCapable
  neighborPropDelayThresh 20000000
  asCapable               0
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to