Thanks a lot, I have got it and I will try it.
The parameter ??duration?? represent the subscribe client
whether in the validity period?
If duration time is expired ptpt4l will remove it and the client need to
re-subscribe it?
Another question: Is there any conditions for using "slave_monitor_event"?
eg. delay_mechanism must be E2E or P2P or both are OK.
montior_delay() is only called in case DELAY_RESP(process_delay_resp()) while
not in case PDELAY_RESP.
switch (msg_type(msg)) { case SYNC: process_sync(p, msg); break; case
DELAY_REQ: if (process_delay_req(p, msg)) event = EV_FAULT_DETECTED;
break; case PDELAY_REQ: if (process_pdelay_req(p, msg))
event = EV_FAULT_DETECTED; break; case PDELAY_RESP: if
(process_pdelay_resp(p, msg)) event = EV_FAULT_DETECTED;
break; case FOLLOW_UP: process_follow_up(p, msg); break; case DELAY_RESP:
process_delay_resp(p, msg); break;
------------------ Original ------------------
From: "Richard Cochran";<richardcoch...@gmail.com>;
Send time: Tuesday, Jun 21, 2022 2:49 AM
To: "?????9?2 ??????"<957993...@qq.com>;
Cc: "linuxptp-users"<linuxptp-users@lists.sourceforge.net>;
Subject: Re: [Linuxptp-users] How do I use "slave_event_monitor" to get
the management info(such as offset, delay, master time) which should from PMC.
On Mon, Jun 20, 2022 at 10:32:55PM +0800, ?????9?2 ?????? wrote:
> Thanks very much.
> I also want to know&nbsp;how can I subscribe to receive PORT_DATA_SET
and TIME_STATUS_NP via the push method?
> Could you help me some example and guidance? Thanks a lot.
pmc is your friend...
root@ctm:~# pmc -b0 -u
help
[action] USER_DESCRIPTION
[action] DEFAULT_DATA_SET
[action] CURRENT_DATA_SET
[action] PARENT_DATA_SET
[action] TIME_PROPERTIES_DATA_SET
[action] PRIORITY1
[action] PRIORITY2
[action] DOMAIN
[action] SLAVE_ONLY
[action] CLOCK_ACCURACY
[action] TRACEABILITY_PROPERTIES
[action] TIMESCALE_PROPERTIES
[action] TIME_STATUS_NP
[action] GRANDMASTER_SETTINGS_NP
[action] SUBSCRIBE_EVENTS_NP
[action] SYNCHRONIZATION_UNCERTAIN_NP
[action] NULL_MANAGEMENT
[action] CLOCK_DESCRIPTION
[action] PORT_DATA_SET
[action] LOG_ANNOUNCE_INTERVAL
[action] ANNOUNCE_RECEIPT_TIMEOUT
[action] LOG_SYNC_INTERVAL
[action] VERSION_NUMBER
[action] DELAY_MECHANISM
[action] LOG_MIN_PDELAY_REQ_INTERVAL
[action] PORT_DATA_SET_NP
[action] PORT_STATS_NP
[action] PORT_PROPERTIES_NP
The [action] can be GET, SET, CMD,
or COMMAND
Commands are case insensitive and
may be abbreviated.
TARGET [portIdentity]
TARGET *
get SUBSCRIBE_EVENTS_NP
sending: GET SUBSCRIBE_EVENTS_NP
a0369f.fffe.10cfaf-0 seq 0 RESPONSE
MANAGEMENT SUBSCRIBE_EVENTS_NP
duration 0
NOTIFY_PORT_STATE off
NOTIFY_TIME_SYNC off
set SUBSCRIBE_EVENTS_NP duration 60 NOTIFY_PORT_STATE on NOTIFY_TIME_SYNC on
sending: SET SUBSCRIBE_EVENTS_NP
a0369f.fffe.10cfaf-0 seq 1 RESPONSE
MANAGEMENT SUBSCRIBE_EVENTS_NP
duration 60
NOTIFY_PORT_STATE on
NOTIFY_TIME_SYNC on
get SUBSCRIBE_EVENTS_NP
sending: GET SUBSCRIBE_EVENTS_NP
a0369f.fffe.10cfaf-0 seq 2 RESPONSE
MANAGEMENT SUBSCRIBE_EVENTS_NP
duration 26
NOTIFY_PORT_STATE on
NOTIFY_TIME_SYNC on
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users