Giter VIP home page Giter VIP logo

Comments (28)

jclark avatar jclark commented on August 17, 2024 1

You mean ts2phc.pin_index, right? It defaults to zero, which is often right, but I agree it would be helpful to put it in the configuration file. Thanks for the suggestion!

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

”> You mean ts2phc.pin_index, right? It defaults to zero, which is often right, but I agree it would be helpful to put it in the configuration file. Thanks for the suggestion!”
You mean ts2phc.pin_index, right? yes
I started the task based on your documentation and official documentation, but after a while there will be a value of a few microseconds. Is this normal?

image
image

image

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

Is there a switch between the GM and the client?

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

Is there a switch between the GM and the client?

no

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

That doesn't sound normal.

  • What is your hardware configuration (GM, client, GPS)?
  • What are you measuring? What is showing a value of a few microseconds?

I don't understand what ts2phc_slave is doing,

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

That doesn't sound normal.

  • What is your hardware configuration (GM, client, GPS)?
  • What are you measuring? What is showing a value of a few microseconds?

I don't understand what ts2phc_slave is doing,

os : buildroot

gm is rockchip3568 inter i210 gprmc + pps .

ts2phc_slave output 1pps

between gm 1pps and ptp client have a value of a few microseconds

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

Sorry, I don't understand. Please explain your setup in much more detail.

I still don't understand why you are using ts2phc_slave. Why aren't you getting the PPS from the GM using PHC periodic output on the SDP of the i210?

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

Sorry, I don't understand. Please explain your setup in much more detail.

I still don't understand why you are using ts2phc_slave. Why aren't you getting the PPS from the GM using PHC periodic output on the SDP of the i210?

The two devices are synchronized using ptp, and the slave device outputs 1pps through ts2phc

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

I am not going to be able to help unless you give me much, more detail.

  • config files
  • command lines
  • logs
  • hardware used for the client
  • hardware used for the GM in detail; I don't know what "rockchip3568 inter i210 gprmc + pps" means

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

I am not going to be able to help unless you give me much, more detail.

  • config files
  • command lines
  • logs
  • hardware used for the client
  • hardware used for the GM in detail; I don't know what "rockchip3568 inter i210 gprmc + pps" means

Why aren't you getting the PPS from the GM using PHC periodic output on the SDP of the i210?
How to set this up specifically?

arm64 chip : rk3568

ts2phc_slave
[global]
use_syslog 0
verbose 1
logging_level 6
ts2phc.pulsewidth 100000000
[enp1s0]
ts2phc.channel 0

ts2phc.extts_polarity both
ts2phc.pin_index 1

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

You set it up like this:

https://github.com/jclark/rpi-cm4-ptp-guide/blob/main/measure.md#enable-pps-output

However with the i210, you cannot specify the -w argument. It always defaults to 50% duty cycle.

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

You set it up like this:

https://github.com/jclark/rpi-cm4-ptp-guide/blob/main/measure.md#enable-pps-output

However with the i210, you cannot specify the -w argument. It always defaults to 50% duty cycle.

I tested it, testptp cannot output on my platform

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

You're saying:

  1. you have an i210
  2. you have SDPs
  3. external timestamping works
  4. periodic output doesn't work

That seems very strange. I can't think of any reason why that could be the case.

What does phc_ctl enp1s0 say?

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

You're saying:

  1. you have an i210
  2. you have SDPs
  3. external timestamping works
  4. periodic output doesn't work

That seems very strange. I can't think of any reason why that could be the case.

What does phc_ctl enp1s0 say?

I think it's a switch problem. I removed the switch and it doesn't seem to have this problem. I still need to test it.

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

image
image

I tested and found that after about 26393 seconds, the difference between the pps of his server and the client became larger and larger.

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

What happens after that?

My guess is that ts2phc got confused: it's not very robust. I suggest you start to investigate the problem by looking at the logs for ts2phc.

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

What happens after that?

My guess is that ts2phc got confused: it's not very robust. I suggest you start to investigate the problem by looking at the logs for ts2phc.

image
It shows this, there is no pps deviation data anymore

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

"poll returns zero" means that ts2phc isn't receiving PPS events.

"clearing Tx timestamp bug" suggests you have a kernel/driver problem (I guess a problem with igb driver on your ARM system).

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

What kernel are you using? Is the i210 on a separate PCIe card or is it on the board?

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

What kernel are you using? Is the i210 on a separate PCIe card or is it on the board?

kernel 5.10 pcie2.0 rockchip rk3568(arm64)

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

This isn't going to be straightforward to fix.

I suggest first trying a newer kernel. I believe 6.1 is available or coming soon for the rk3568. Another thing to try is to figure out whether this a arm64 problem or whether it's specific to rk3568.

What board do you have?

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

This isn't going to be straightforward to fix.

I suggest first trying a newer kernel. I believe 6.1 is available or coming soon for the rk3568. Another thing to try is to figure out whether this a arm64 problem or whether it's specific to rk3568.

What board do you have?

itop-3568, a board by a small company

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

ts2phc[481.201]: config item (null).free_running is 0
ts2phc[481.201]: PPS sink enp1s0 has ptp index 0
ts2phc[481.201]: UTC-TAI offset not set in system! Trying to revert to leapfile
ts2phc[481.201]: config item (null).leapfile is '/usr/share/zoneinfo/leap-seconds.list'
ts2phc[481.823]: UTC time is past leap second table expiry date
ts2phc[481.823]: source ts not valid
ts2phc[481.823]: UTC time is past leap second table expiry date
ts2phc[481.823]: source ts not valid
ts2phc[481.923]: UTC time is past leap second table expiry date
ts2phc[481.923]: source ts not valid
ts2phc[481.923]: UTC time is past leap second table expiry date
ts2phc[481.923]: source ts not valid
ts2phc[482.823]: UTC time is past leap second table expiry date
ts2phc[482.823]: source ts not valid
ts2phc[482.824]: UTC time is past leap second table expiry datets2phc[481.201]: config item (null).free_running is 0
ts2phc[481.201]: PPS sink enp1s0 has ptp index 0
ts2phc[481.201]: UTC-TAI offset not set in system! Trying to revert to leapfile
ts2phc[481.201]: config item (null).leapfile is '/usr/share/zoneinfo/leap-seconds.list'
ts2phc[481.823]: UTC time is past leap second table expiry date
ts2phc[481.823]: source ts not valid
ts2phc[481.823]: UTC time is past leap second table expiry date
ts2phc[481.823]: source ts not valid
ts2phc[481.923]: UTC time is past leap second table expiry date
ts2phc[481.923]: source ts not valid
ts2phc[481.923]: UTC time is past leap second table expiry date
ts2phc[481.923]: source ts not valid
ts2phc[482.823]: UTC time is past leap second table expiry date
ts2phc[482.823]: source ts not valid
ts2phc[482.824]: UTC time is past leap second table expiry date

hello , why is that? I ran ts2phc according to the previous settings, and this appeared:

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

This means /usr/share/zoneinfo/leap-seconds.list is out of date. You can update the relevant distro package. Or download an updated one from

https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

This means is out of date. You can update the relevant distro package. Or download an updated one from/usr/share/zoneinfo/leap-seconds.list

https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

ok thanks

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

This means is out of date. You can update the relevant distro package. Or download an updated one from/usr/share/zoneinfo/leap-seconds.list

https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

In which directory are the logs generated by ts2phc located? Can I set the path?

from pc-ptp-ntp-guide.

jclark avatar jclark commented on August 17, 2024

ts2phc logs using syslog.

from pc-ptp-ntp-guide.

652436962 avatar 652436962 commented on August 17, 2024

ts2phc logs using syslog.

thank you

from pc-ptp-ntp-guide.

Related Issues (6)

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.