Skip to content

Conversation

@tokaivola
Copy link

Dect clock sync documentation.

The purpose of this PR is first and foremost to serve as means to share this for review, possible merge will happen after dialogue and fixes are complete.

@tokaivola tokaivola requested review from a team as code owners December 23, 2025 11:02
@CLAassistant
Copy link

CLAassistant commented Dec 23, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the doc-required PR must not be merged without tech writer approval. label Dec 23, 2025
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 23, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 23, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
@tokaivola tokaivola force-pushed the main branch 2 times, most recently from 814fe78 to 20b94fa Compare December 23, 2025 11:07
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 23, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 23, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 23, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 23, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 23, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 23, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
@pal-nordic
Copy link

generally this seemed nice and thorough!

NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Jan 7, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Jan 7, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>

To convert the value to floating-point parts per million (ppm)::

float ppm = clock_std_ppm / 4096.0f;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use (float) 2^12 here as a divisor to make it clear where the 4096 comes from?

*********************

The external clock signal must be a 1 PPS (pulse-per-second) signal connected to the modem's clock synchronization input.
When synchronization is enabled, the modem adjusts its internal clock rate to ensure that exactly ``NRF_MODEM_DECT_MODEM_TIME_TICK_RATE_KHZ`` clock cycles occur between consecutive external clock pulses.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NRF_MODEM_DECT_MODEM_TIME_TICK_RATE_KHZ is 69120 (I hope), but we are monitoring 69120000 clock cycles.

=>

When synchronization is enabled, the modem adjusts its internal clock rate to match correct number of clock cycles between consecutive external clock pulses.

i.e do we need that NRF_MODEM_DECT_MODEM_TIME_TICK_RATE_KHZ at all?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can switch this to a plain number, but it might need also to be explained from where the number comes from

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or just leave out the numbers as suggested. That would actually be better.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, either remove or NRF_MODEM_DECT_MODEM_TIME_TICK_RATE_KHZ*1000 which looks ugly ;)


#. Check that all operation parameters are valid
#. Verify that the Modem library is initialized
#. Check system logs for additional error information

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have system logs available in general case? Fidoless trace must be separately enabled, right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This refers to whatever app domain traces the user might have available.

Adds documentation for Dect clock synchronization.

Signed-off-by: Tommi Kaivola <[email protected]>
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Jan 8, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-nrfxlib#1973

Signed-off-by: Nordic Builder <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-required PR must not be merged without tech writer approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants