是否有 PTP(精确时间协议 | IEEE 1588)库? [英] Is there a PTP (Precision Time Protocol | IEEE 1588) library?

查看:24
本文介绍了是否有 PTP(精确时间协议 | IEEE 1588)库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务是使用 PTP(精确时间协议,IEEE 1588)时间源同步一个时间关键过程,以记录来自 PLC 的数据.

I've been tasked with syncing a time critical process for logging data from a PLC with a PTP (Precision Time Protocol, IEEE 1588) time source.

快速浏览一下可用的库,除了基于 IVI-C 和 IVI-COM 的实现之外什么都没有.

A quick look at the available libraries all turn up nothing but IVI-C and IVI-COM based implementations.

是否有我错过的支持 PTP 的托管库,或者我是否需要找到一种方法来在我的应用程序中使用专为 LabVIEW 设计的 IVI-COM 库?

Is there a managed library that supports PTP that I missed, or do I need to find a method to use theIVI-COM library that is designed for LabVIEW in my application?

推荐答案

I had reffered, 以下答案来自本网站 http://code.google.com/p/ptpv2d/wiki/Introduction,我在 ptpv2d 上给了我一个清晰的想法,希望你也能得到关于这个的清晰信息.

I had reffered, the following answer from this site http://code.google.com/p/ptpv2d/wiki/Introduction, which i gave me a clear idea on ptpv2d, hope you also get the clear information, about this.

请也参考这个http://code.google.com/p/ptpv2d/

ptpv2d 是 IEEE 1588 第 1 版、第 2 版和 IEEE 802.1AS 的 GPL 许可开源代码,包括飞思卡尔 MPC831x 系列处理器的硬件时间戳.

ptpv2d is GPL licensed open source code of IEEE 1588 version 1, version 2 and IEEE 802.1AS including hardware timestamping for Freescale MPC831x family of processors.

ptpv2d 是一个精确时间具有以下内容的协议特点:

The ptpv2d is a Precision Time Protocol which has the following features:

  1. 在标准 LINUX 下运行的用户模式应用程序,具有模块化设计,确保轻松转移到额外的操作系统.
  2. 广泛的可选打印到控制台调试消息功能.此消息功能可以在编译时添加或省略时间.如果包含,则输出级别是命令行可选择.调试消息是统一格式以加快速度,更容易分析.POSIX 套接字调用用于检索所有消息.消息处理是包含在一个单独的模块中确保轻松转移到任何所需的操作系统.
  3. 完全支持飞思卡尔 MPC8313E 以太网端口驱动程序用于 PTP 版本 1 和版本 2消息硬件时间戳.
  4. 能够非常精确地调整硬件时钟(如精确到十亿分之一).精细的软件算法(如小十亿分之一)调整硬件时钟.
  5. 能够报告检测到的来自大师的差异时钟为百万分之几
  6. 命令行能够设置四种不同的调试输出级别:无、基本、详细、和消息7.能够设置同步/后续传输时间值不到一秒.这允许每秒多个同步/跟进,这提供了更高的准确性和跟踪从"系统到大师"
  7. 其他运行时选项和支持代码包括:
  8. 选择 PTP 版本 1 或版本 2 封装和协议10.IEEE 1588 PTP over IPv4/UDP、IEEE P1588 PTP的选择通过以太网(草案 2.2)或 IEEEP802.1AS封装和协议(草案 1.0)用户指定时钟周期合成其他基数时钟,而不仅仅是 10 MHz.

这些功能都经历过广泛的测试使用双运行两个 PTP 的 MPC8313E-RDB 板和平交通.在飞思卡尔MPC8313E-RDB 板运行八每秒同步/后续消息,它将支持正负 50来自 master 的纳秒偏移量更多超过 99.9% 的时间.在 128每秒同步/跟进,系统将在 16 内同步大师"的纳秒级系统.

These features have gone through extensive testing using dual MPC8313E-RDB boards running both PTP and Ping traffic. On a Freescale MPC8313E-RDB board running eight Sync/Follow-up Messages per second, it will support a plus or minus 50 nanosecond offset from master more than 99.9% of the time. At 128 Sync/Follow-ups per seconds, the system will synchronize within 16 nanoseconds of the "grandmaster" system.

这篇关于是否有 PTP(精确时间协议 | IEEE 1588)库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆