Giter Site home page Giter Site logo

it won't work about w32time HOT 12 OPEN

AndreV84 avatar AndreV84 commented on May 9, 2024
it won't work

from w32time.

Comments (12)

mwtrigg avatar mwtrigg commented on May 9, 2024

I also have this problem.

from w32time.

Kemler-J avatar Kemler-J commented on May 9, 2024

I have this problem also,
I suspect that w32time didn't get windows ptp provider, see the output here:
ReferenceId: 0x00000000 (unspecified) //---------------> this should be 0x4D505450
Last Successful Sync Time: unspecified
Source: Local CMOS Clock

But how to change it ?

from w32time.

mwtrigg avatar mwtrigg commented on May 9, 2024

I found reference to a similar (maybe th
e same) problem under a different issue here; it appears that Microsoft's implementation only works when the PTP domain is 0.

Are either of you using a PTP server that is using a different domain?

from w32time.

Kemler-J avatar Kemler-J commented on May 9, 2024

actually, PTP service is ready enabled, in event viewer
image
we can see domain is 0 here. I didn't try different domain.
Req/Resp messages were showed on Wireshark tool.
image

but still shows error when run w32tm /resync
I total get confused about it

from w32time.

Kemler-J avatar Kemler-J commented on May 9, 2024

Hi, Guys
finally, I got the ptp4l works with w32tm. but it still has some problems, the phaseoffset should not be correct, it is so huge, and after sync, the time was changed to 1995, i don't know why, because in Wireshark, we checked the correction, it is no problem, but why W32TM shows show a huge gap, Does everyone know it?
attach some picture here
image
image

image
Who knows the reason?
Thanks

from w32time.

AndreV84 avatar AndreV84 commented on May 9, 2024

could you share all parameters that you are using starting ptp4l at linux server, please?
In my environment it would see the server messages, but wouldnt synchronize. at least it wouldnt indicate that sync happens in the terminal but would also throw error messages. It was all like half working. tried event viewer and wireshark. client/server also with various parameters etc.

from w32time.

Kemler-J avatar Kemler-J commented on May 9, 2024

hi all
As I mentioned, W32tm only supports unicast, so please use this command
./ptp4l -E -i (interface) -m -H -f ./configs/UNICAST-MASTER.cfg
you should modify the config as below:
[global]
hybrid_e2e 1
inhibit_multicast_service 0
unicast_listen 1

Hope it can help you.

from w32time.

AndreV84 avatar AndreV84 commented on May 9, 2024

@Kemler-J
Thank you for sharing!
Will try to get with this config https://github.com/richardcochran/linuxptp/blob/master/configs/UNICAST-MASTER.cfg with the mentioned modifications

from w32time.

xiaoerlangya avatar xiaoerlangya commented on May 9, 2024

@AndreV84
Did you receive Req/Resp messages on Wireshark tool? And did you receive 512,513 messages in event viewer please?
I also tried to deploy the PTP client in Windows to complete the clock synchronization with LinuxPTP in Linux. Windows could only receive sync, follow up and Announce messages, but did not reply any messages(delay_req). What's the matter?

from w32time.

AndreV84 avatar AndreV84 commented on May 9, 2024

exactly!
receive Req/Resp messages on Wireshark tool also 512,513
however if you are not binded to ptp4l as I am you may use pre-configured ptpd that works but less desireable in certain situations

from w32time.

xiaoerlangya avatar xiaoerlangya commented on May 9, 2024

@AndreV84
Thank you for your replying.
It is a pity that Centos only support Linuxptp.
I also added the unicast_master configuration file as above
image
And run like this
image
But the windows did not reply any messages.

from w32time.

mdavids avatar mdavids commented on May 9, 2024

My guess is that the currentUtcOffsetValid-flag (PTP_UTC_REASONABLE in Wireshark) has to be non-zero, which is something that can be easily accomplished with PTPd, but is not a trivial thing to do with LinuxPTP.

Obviously, also the domain has to be '0' and the PTP_TIMESCALE-flag also has to be set.

from w32time.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.