Configuration Guide#
This guide describes the configuration of the S-CORE time module components.
TimeSlave Daemon (time_slave)#
The behavior of the TimeSlave is controlled by the GptpEngineOptions structure. Currently, only a subset of these options can be overridden at runtime via command-line arguments. For all other options, the hard-coded default values are used.
Command-Line Arguments#
The following argument is available to configure the TimeSlave at runtime:
Argument |
Overrides |
Description |
|---|---|---|
|
|
Mandatory Runtime Parameter. Specifies the Ethernet network interface. Although the internal default is “emac0”, this must be set correctly at runtime to match the target hardware. |
Default Configuration (GptpEngineOptions)#
The following table lists all available options and their default values as defined in the source code. Currently, only iface_name can be changed without recompiling the application.
Option |
Default Value |
Description |
|---|---|---|
|
|
The network interface to use for gPTP traffic. |
|
|
The interval in milliseconds for sending Peer-Delay measurement requests. |
|
|
The initial delay in milliseconds before the first Peer-Delay request is sent. |
|
|
The time in milliseconds without receiving a PTP Sync message before a timeout is declared and the clock is considered unreliable. |
|
|
The threshold in nanoseconds (500 ms) for detecting a significant forward time jump. |
|
|
The gPTP domain number. The TimeSlave will only interact with a PTP master in the same domain. |
|
|
Configuration for hardware clock (PHC) adjustments. Disabled by default. |
Example Invocation#
# Start the TimeSlave, overriding the default interface name "emac0"
./time_slave --interface eth1
Attention
The command-line parsing is currently incomplete. To change parameters other than the interface name, you must modify the default values in the GptpEngineOptions structure and recompile the application. A comprehensive configuration mechanism (e.g., via a JSON file) is planned for future versions.
TimeDaemon (time_daemon) & Client Applications#
The TimeDaemon process and all client applications using the score::time library currently operate without any external configuration. They rely on the default, built-in settings for IPC communication.