Hi
I built an app for testing which subscribes to ptp4l to receive PORT_STATE
change notification. This inspired by phc2sys. It's using Unix domain sockets.
...
pmc_send_set_action(pmc, TLV_SUBSCRIBE_EVENTS_NP, &sen, sizeof(sen);
...
It's working stably for ordinary clock. Subscribe duration is 180s. Renewed
after 80% of 180s.
I tried with a 3-port boundary clock and here are my findings
- It only detects PORT_STATE change of clockIdentity/portNumber 1.
This because portNumber is set to 1 in pmc_create().
? Could this be enhanced for BC by subscribing for each port separately
(modification needed in pmc_create)
- It stops getting notifications after a few PORT_STATE changes: Any
idea what could be the reason?
Regards, Chris
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users