mpthompson / stm32_f4_ptpd

IEEE 1588 PTP daemon for STM32 F4 Discovery board
73 stars 59 forks source link

Hi #5

Open Andy041292 opened 3 years ago

Andy041292 commented 3 years ago

Hi. I have a several questions regarding the project, please, guide me a little if you have time.

  1. Is this project fully operational? (I mean at least at some extent, so it can adjust to the master with pretty nice accuracy)
  2. What transport does this project support? Only UDP or Raw Ethernet too?
  3. Can this project be used without RTOS only with HAL lib?
  4. Does this project support PTPv2 and hardware timestamping?
  5. Is there something for PPS generation there?
  6. Can it be ported on STM32f746?
mpthompson commented 3 years ago

Hi Andy,

On Mon, Sep 14, 2020 at 3:16 AM Andy041292 notifications@github.com wrote:

Hi. I have a several questions regarding the project, please, guide me a little if you have time.

  1. Is this project fully operational? (I mean at least at some extent, so it can adjust to the master with pretty nice accuracy)

This project is several years old, but at one point was fully functional on STM32F4 hardware. It would synchronize the clock with the master to within a few microseconds.

  1. What transport does this project support? Only UDP or Raw Ethernet too?

I can't recall the details.

  1. Can this project be used without RTOS only with HAL lib?

This project was written just as the STM32 HAL library was being introduced and uses the older STM32 Standard Peripheral Library. I don't think it would be very easy to separate from the CMSIS RTOS API, but could be possible.

  1. Does this project support PTPv2 and hardware timestamping?

Hardware timestamping is used exclusively and it should support the PTPv2 protocol (90% sure it was based on older PTPv2 client code).

  1. Is there something for PPS generation there?

Not specifically. However, the STM32 precision clock that is being used does seem to have the capability to produce a PPS signal which could be enabled.

  1. Can it be ported on STM32f746?

The issue for the STM32F7 devices is the lack of support for the older STM32 Standard Peripheral Library on the devices (they only support the new HAL libraries). This will make porting the code a bit difficult.

I have a much new version of the code that supports STM32F4 and STM32F7 devices, STM32 Nucleo hardware to make testing easier, supports both PTPD slave and master mode (synchronized against a GPS device) and supports the STM32 HAL libraries. This code is active use at my day job and should be much more refined and robust. Unfortunately, I don't yet have this code released and posted to Github. This is probably something I can do fairly soon, but I can't make promises as I'm very busy with work projects at this time.

Mike Thompson

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mpthompson/stm32_f4_ptpd/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANLN5GIJFQQX7Z2YKCNEYLSFXUPNANCNFSM4RLNI46A .

Andy041292 commented 3 years ago

Thank you a lot for the answers!