Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology
462 stars 289 forks source link

Link delay 0 beyond neighborPropDelayThresh; not AsCapable #925

Open YiYuan111 opened 1 year ago

YiYuan111 commented 1 year ago

Hello, I have two development boards for gPTP test. However, the first error was reported. The link_delay and turn_around values are both 0. Here are the logs for both ends ================ master's log ============================ /usrdata/trs/app # daemon_cl eth0 -F /data/m_gptp_cfg.ini
INFO : GPTP [01:39:28:737] gPTP starting
Unrecognized configuration item: section=port, name=allowNegativeCorrectionField
INFO : GPTP [01:39:28:740] priority1 = 0
INFO : GPTP [01:39:28:740] announceReceiptTimeout: 3
INFO : GPTP [01:39:28:740] syncReceiptTimeout: 3
INFO : GPTP [01:39:28:740] LINKSPEED_100MB - PHY delay
TX: 1044 | RX: 2133
INFO : GPTP [01:39:28:740] LINKSPEED_1G - PHY delay
TX: 184 | RX: 382
INFO : GPTP [01:39:28:740] neighborPropDelayThresh: 3
INFO : GPTP [01:39:28:740] syncReceiptThreshold: 8
INFO : GPTP [01:39:28:740] initialLogSyncInterval: 0
INFO : GPTP [01:39:28:740] initialLogPdelayReqInterval: 0
INFO : GPTP [01:39:28:740] Configuring port state to Slave

INFO : GPTP [01:39:28:740] automotive profile False isGM False

INFO : GPTP [01:39:28:740] priority1 0 and priority2 0 clockClass 0 srt 3 art 3

WARNING : GPTP [01:39:28:741] qtimer_to_mono_offset -- min:0 max:-1226384044 new avg: 3068583305
INFO : GPTP [01:39:28:741] Using clock device: /dev/ptp0
STATUS : GPTP [01:39:28:741] Starting PDelay
STATUS : GPTP [01:39:28:742] Link Speed: 1000000 kb/sec
STATUS : GPTP [01:39:31:742] *** Announce Timeout Expired - Becoming Master
New Grandmaster "02:51:52:FF:FE:00:00:02" (previous "00:00:00:00:00:00:00:00")
EXCEPTION: GPTP [01:39:31:774] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:32:779] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:33:780] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:34:782] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:35:789] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:36:792] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:37:793] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:38:799] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:39:805] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:40:806] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:41:809] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:42:813] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:43:817] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:44:819] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:45:821] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:46:823] PDelay Response Receipt Timeout
EXCEPTION: GPTP [01:39:47:825] PDelay Response Receipt Timeout
ERROR : GPTP [01:39:47:835] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:48:842] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:49:846] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:50:850] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:51:853] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:52:858] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:53:863] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:54:869] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:55:871] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:56:875] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:57:880] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
ERROR : GPTP [01:39:58:887] Link delay 0 beyond neighborPropDelayThresh; not AsCapable
^CERROR : GPTP [01:40:02:628] Exiting on 2

========================= slave's log ======================== /usrdata/trs/app # ./daemon_cl eth0 -F /data/s_gptp_cfg.ini INFO : GPTP [01:39:47:019] gPTP starting ERROR : GPTP [01:39:47:024] Group ptp not found, will try root (0) instead INFO : GPTP [01:39:47:027] priority1 = 248 INFO : GPTP [01:39:47:027] announceReceiptTimeout: 3 INFO : GPTP [01:39:47:027] syncReceiptTimeout: 3 INFO : GPTP [01:39:47:027] LINKSPEED_100MB - PHY delay TX: 1044 | RX: 2133 INFO : GPTP [01:39:47:028] LINKSPEED_1G - PHY delay TX: 184 | RX: 382 INFO : GPTP [01:39:47:028] neighborPropDelayThresh: 3 INFO : GPTP [01:39:47:028] syncReceiptThreshold: 8 INFO : GPTP [01:39:47:028] SyncFollowUp with negative correction field: permitted ERROR : GPTP [01:39:47:030] Using clock device: /dev/ptp0 STATUS : GPTP [01:39:47:031] Starting PDelay STATUS : GPTP [01:39:47:031] Link Speed: 1000000 kb/sec ERROR : GPTP [01:39:47:067] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:48:072] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:49:078] Link delay 0 beyond neighborPropDelayThresh; not AsCapable STATUS : GPTP [01:39:50:030] *** Announce Timeout Expired - Becoming Master STATUS : GPTP [01:39:50:030] New Grandmaster "00:55:7B:FF:FE:B5:7D:F7" (previous "00:00:00:00:00:00:00:00") ERROR : GPTP [01:39:50:083] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:51:087] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:52:091] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:53:096] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:54:098] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:55:105] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:56:108] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:57:113] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:58:120] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ERROR : GPTP [01:39:59:124] Link delay 0 beyond neighborPropDelayThresh; not AsCapable ^CERROR : GPTP [01:39:59:141] Exiting on 2 INFO : GPTP [01:39:59:299] All threads terminated

PawelModrzejewski commented 1 year ago

gPTP code was moved to dedicated repo AVnu/gptp, so you can try to post it there (and describe a bit more your setup)