Re: [I] how to support ptp [nuttx]

2024-01-25 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1911588604 Thank you very much for your detailed answer. Additionally, I would like to express my gratitude for the assistance you've provided regarding PTP-related issues throughout this

Re: [I] how to support ptp [nuttx]

2024-01-25 Thread via GitHub
PetteriAimonen commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1911553559 That precision probably requires a specifically designed PTP-aware switch, or a direct cable connection between two devices. It would also require adding the hardware TX

Re: [I] how to support ptp [nuttx]

2024-01-25 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1911260415 In the current design, if we want to further improve the precision, such as to achieve a precision of 20-50ns, is there any way to do it? -- This is an automated message from

Re: [I] how to support ptp [nuttx]

2024-01-25 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1911257462 ok! I really appreciate your patient answers. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

Re: [I] how to support ptp [nuttx]

2024-01-25 Thread via GitHub
PetteriAimonen commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1909885453 It's just that transmission timestamps are not implemented in NuttX currently. It could be added, but because of the RTOS nature, the packets go out near immediately when

Re: [I] how to support ptp [nuttx]

2024-01-25 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1909839291 Thank you again for your enthusiastic answers. I noticed that the PTP driver only acquires the timestamp of received packets. According to the PTP protocol, it should acquire

Re: [I] how to support ptp [nuttx]

2024-01-25 Thread via GitHub
PetteriAimonen commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1909782439 The [best master clock](https://en.wikipedia.org/wiki/Precision_Time_Protocol#Best_master_clock_algorithm) algorithm is used:

Re: [I] how to support ptp [nuttx]

2024-01-25 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1909663383 Hi@ PetteriAimonen, I am currently conducting a test with two STM32 boards where one is set as the master and the other as the slave. Upon re-examining the PTPd-related code in

Re: [I] how to support ptp [nuttx]

2024-01-24 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1909182649 Okay, thank you very much for your suggestions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

Re: [I] how to support ptp [nuttx]

2024-01-24 Thread via GitHub
PetteriAimonen commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1908322541 No, I haven't seen errors anywhere near that magnitude. I assume you are using latest ptpd from the nuttx-apps repo? Can you try enabling `CONFIG_NETUTILS_PTPD_DEBUG`

Re: [I] how to support ptp [nuttx]

2024-01-24 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1907668507 I obtain timestamps from the registers rdes2 and rdes3. After initializing the descriptors, I backup the buffer addresses they point to. In the function responsible for

Re: [I] how to support ptp [nuttx]

2023-10-31 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1788447784 Thank you very much for the assistance you've provided -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use

Re: [I] how to support ptp [nuttx]

2023-10-31 Thread via GitHub
PetteriAimonen commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1786517982 @xiaotailang For STM32F4x7 it works this way (from reference manual section "Rx DMA configuration": > If IEEE 1588 time stamping is enabled, the DMA writes the time

Re: [I] how to support ptp [nuttx]

2023-10-30 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1786332829 hello everyone ! I encountered a problem while developing Ethernet PTP. After enabling PTP function by setting PTP-related registers, a hardfault occurred. Upon tracing the

Re: [I] how to support ptp [nuttx]

2023-10-18 Thread via GitHub
xiaoxiang781216 closed issue #10887: how to support ptp URL: https://github.com/apache/nuttx/issues/10887 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe,

Re: [I] how to support ptp [nuttx]

2023-10-11 Thread via GitHub
PetteriAimonen commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1756865534 Yes, for hardware timestamping it is needed for the hardware to have support (STM32F4 hardware does have) *and* NuttX driver for the hardware to have support. -- This is

Re: [I] how to support ptp [nuttx]

2023-10-10 Thread via GitHub
pkarashchenko commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1756843219 The ethernet packet timestamping is not something that can be handled by the driver. I mean that of course we can extend the driver to add timestamps, but those will be SW

Re: [I] how to support ptp [nuttx]

2023-10-10 Thread via GitHub
xiaotailang commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1756831396 ok! Thank you very much. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the

Re: [I] how to support ptp [nuttx]

2023-10-10 Thread via GitHub
PetteriAimonen commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1756818627 Yeah, I'm currently working on PTP support for STM32F4 platform. The PTP daemon is mostly done, with the few missing features noted in the pull request linked above.

Re: [I] how to support ptp [nuttx]

2023-10-10 Thread via GitHub
xiaoxiang781216 commented on issue #10887: URL: https://github.com/apache/nuttx/issues/10887#issuecomment-1756710754 @PetteriAimonen add PTP support recently, you can reference the related patch: https://github.com/apache/nuttx-apps/pull/2101 https://github.com/apache/nuttx/pull/10827

[I] how to support ptp [nuttx]

2023-10-10 Thread via GitHub
xiaotailang opened a new issue, #10887: URL: https://github.com/apache/nuttx/issues/10887 Hello everyone, if I want to add PTP (Precision Time Protocol) synchronization functionality to NuttX system, how can I port ptpd or the PTP sub-module from Linux to NuttX? Are there any reference