Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linuxptpdaemon: Decoupling Process Dependency of DPLL and GPS from ts2phc #7

Open
aneeshkp opened this issue Jan 30, 2025 · 0 comments
Labels
enhancement New feature or request linuxptpdaemon

Comments

@aneeshkp
Copy link
Collaborator

Decoupling Process Dependency of DPLL and GPS from ts2phc

The current implementation of ts2phc automatically includes ublox/gpspipe and DPLL-related calls when the process detects ts2phc running and an E810 plugin is present.

To improve modularity and flexibility, these dependencies should be decoupled and added only based on specific configuration requirements.
Proposed Implementation:

The dependency checker should iterate over the interfaces (p.ifaces) associated with the ptpProcess and determine dependencies based on hardware and configuration settings.
Checking for DPLL Requirements:

For each interface, the checker should verify:

If the source is GNSS or PPS, and
If the clock type is GM (Grandmaster) or BC (Boundary Clock)

Implementation Steps:

DPLL Dependency:
    Add dpll.DPLL_PROCESSNAME to the dependencies map (deps) only if the DPLL API is available and the hardware configuration explicitly requires it.

GPS Dependencies for ts2phc:
    Add GPSD and GPSPIPE as dependencies to ts2phc only if the node is acting as a Grandmaster (GM) and the hardware configuration requires GPS support.
@aneeshkp aneeshkp added enhancement New feature or request linuxptpdaemon labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request linuxptpdaemon
Projects
None yet
Development

No branches or pull requests

1 participant