On Mon, Jun 20, 2022 at 10:32:55PM +0800, 这个🍊 不太冷 wrote:
> Thanks very much.
> I also want to know 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users