Discussion:
[Linuxptp-devel] Configuration file and parameters
Rohrer Hansjoerg
2013-07-02 08:12:58 UTC
Permalink
Hello

1. userDescription is implemented in source code to be read from config. file, but missing in config files (examples).

2. To use ptp4l as Grandmaster, at least the timeSource parameter should be available in config file.

3. How can ptp4l as Grandmaster be informed, that the clockClass changes in running mode (without restart)?
E.g. clockClass from synchronized (6) to holdover (7) and back.
I think there sould be some sort of reread of the config file while running, e.g. HUP-signal....

Best regards
Hansjörg

___________________________________

Hansjoerg Rohrer
Deputy CTO
Engineering & Design
***@mobatime.com
Phone direct: +41 34 432 4635


Moser-Baer AG
Spitalstrasse 7
3454 Sumiswald
Switzerland

Phone: +41 34 432 4646
Fax: +41 34 432 4699
www.mobatime.com
www.mobatec.ch
___________________________________


Confidentiality:

The information contained in this e-mail and in any attached files is confidential and/or legally privileged. If you are not the intended recipient, please contact the sender and delete this e-mail. Any unauthorised copying or distribution of the information contained in this e-mail and/or in any attached file is prohibited. The sender and/or the sending company do not accept liability for the incorrect and/or incomplete transmission of the information, nor for any delay or interruption of the transmission, nor for the damages arising from the use of or reliance on the information unless mandatory law provides otherwise. E-mails may be interfered with, may contain computer viruses or other defects. The sender and/or the sending company give no warranties and do not accept liability in relation to these matters, unless mandatory law provides otherwise. Thank you for your cooperation.
Richard Cochran
2013-07-02 14:13:20 UTC
Permalink
Post by Rohrer Hansjoerg
Hello
1. userDescription is implemented in source code to be read from config. file, but missing in config files (examples).
Okay, easy to fix.
Post by Rohrer Hansjoerg
2. To use ptp4l as Grandmaster, at least the timeSource parameter should be available in config file.
Also easy to add.
Post by Rohrer Hansjoerg
3. How can ptp4l as Grandmaster be informed, that the clockClass changes in running mode (without restart)?
E.g. clockClass from synchronized (6) to holdover (7) and back.
I think there sould be some sort of reread of the config file while running, e.g. HUP-signal....
Short term solution:
Instead of HUP, you can just do: killall ptp4l; ptp4l -f new_config.

I think the bet way to allow changing such things would be using the
management interface, via the UDS. While there is no standard message
for setting clockClass, we can reasonably add a private one for this
purpose.

This is a bit more work, but it is something I had wanted to add,
eventually. Now that someone is asking for it, I have a reason to
implement it right away...

Thanks,
Richard
Keller, Jacob E
2013-07-02 17:55:34 UTC
Permalink
-----Original Message-----
Sent: Tuesday, July 02, 2013 7:13 AM
To: Rohrer Hansjoerg
Subject: Re: [Linuxptp-devel] Configuration file and parameters
I think the bet way to allow changing such things would be using the
management interface, via the UDS. While there is no standard message
for setting clockClass, we can reasonably add a private one for this
purpose.
This is a bit more work, but it is something I had wanted to add,
eventually. Now that someone is asking for it, I have a reason to
implement it right away...
Thanks,
Richard
Agreed, the best way would be a private method over the UDS management interface.

- Jake

Loading...