Синхронизация времени с сервером/en: различия между версиями

Материал из SmartPlayer
Новая страница: «Time Synchronization with Server»
 
Новая страница: «== '''Description of the Situation''' == The SmartPlayer development team has implemented another feature that enables synchronization between the server and the device via the NTP protocol, directly from the user dashboard. This solution allows users to minimize time discrepancies and manually configure them according to broadcast requirements and device capabilities. == '''How It Works''' == {{Note|NTP (Network Time Protocol) is a network mechanism for tim...»
 
Строка 1: Строка 1:
<div lang="ru" dir="ltr" class="mw-content-ltr">
== '''Description of the Situation''' ==
== '''Описание ситуации''' ==
The SmartPlayer development team has implemented another feature that enables synchronization between the server and the device via the NTP protocol, directly from the user dashboard. This solution allows users to minimize time discrepancies and manually configure them according to broadcast requirements and device capabilities.
Команда разработки SmartPlayer реализовала еще одну функцию, которая позволяет синхронизировать сервер и устройство между собой внутри личного кабинета по протоколу NTP. Это решение даст пользователям возможность уменьшить временные расхождения и вручную настроить их с учетом требований трансляции и возможностей устройств.  
== '''How It Works''' ==
== '''Логика работы''' ==
{{Note|NTP (Network Time Protocol) is a network mechanism for time synchronization, designed to transmit the accurate current time from a specialized server to devices on a network.<br>
{{Note|NTP (Network Time Protocol) — это сетевой механизм синхронизации времени, предназначенный для передачи точного текущего времени от специализированного сервера устройствам в сети.<br>
For proper functioning of applications and services, Android devices require accurate system time. The device's built-in clock may drift over time, so NTP synchronization is used.<br>
Для корректной работы приложений и сервисов Android-устройству необходимо точное системное время. Встроенные часы устройства со временем могут отклоняться, поэтому используется синхронизация времени через NTP. <br>
When an internet connection is available, the device automatically contacts the time server (NTP). The server sends the current time, after which the system gently adjusts the device’s internal clock. This correction is handled by the operating system and is invisible to the user.<br>
При наличии интернет-соединения устройство автоматически обращается к серверу точного времени (NTP). Сервер передаёт актуальное текущее время, после чего система аккуратно корректирует собственные часы. Коррекция выполняется на уровне операционной системы и происходит незаметно для пользователя.<br>
All applications on the device use the already synchronized system time and do not perform separate time checks themselves. This ensures the proper functioning of schedules, event logs, timers, and network connections.<br>
Все приложения на устройстве используют уже синхронизированное системное время и не выполняют отдельную проверку времени самостоятельно. Это обеспечивает корректную работу расписаний, журналов событий, таймеров и сетевых соединений.<br>
If network access is temporarily unavailable, the device continues to operate using the current time. Once the connection is restored, synchronization is performed automatically.|warn}}
Если доступ к сети временно отсутствует, устройство продолжает работать на основе текущего времени. После восстановления соединения синхронизация выполняется автоматически.|warn}}
== '''Operating Principle''' ==
== '''Принцип действия''' ==
This functionality allows users to minimize the time difference between the device and the server through a dedicated settings block. All these settings are available in the device settings within the SmartPlayer user dashboard.<br>
Данный функционал позволит пользователям максимально уменьшить расхождение по времени между устройством и сервером с помощью отдельного блока настроек. Все эти настройки доступны внутри настроек устройств в личном кабинете SmartPlayer.<br>
To use this feature, the user must register/log in to their SmartPlayer account.<br>
Для того чтобы воспользоваться функционалом необходимо зарегистрироваться/авторизоваться в личном кабинете.<br>
Next, go to the "Devices" section in the dashboard and select the desired device.
Далее пользователю необходимо перейти в раздел «Устройства» личного кабинета и выбрать нужное устройство.
[[File:Выделение_нужного_устройства.png|thumb|center| Example of the selected device in the dashboard |800px]]
[[File:Выделение_нужного_устройства.png|thumb|center| Пример отображения нужного устройства в личном кабинете |800px]]
Clicking on the device opens the device control panel on the right side of the screen. In this panel, the user needs to locate the "Settings" section.
По клику по устрйоству в правой части экрана откроется панель управления устройством. В этой панели пользователю необходимо найти строку «Настройки».  
[[File:Выбор_настроек_устройств.png|thumb|center| Example of the "Settings" option in the device control panel |800px]]
[[File:Выбор_настроек_устройств.png|thumb|center| Пример отображения строки «Настройки» в панели управления устройством |800px]]
A new page with a list of settings categories will then open. In this case, the required category is "Automation Management". The user should click on this category.
Далее откроется новая страница со списком категорий настроек. В данном случае нужной категорией является «Автоматизация управления». На эту категорию пользователю и надо кликнуть.
[[File:Раздел_автоматизации.png|thumb|center| Example of the "Automation Management" category |800px]]
[[File:Раздел_автоматизации.png|thumb|center| Пример отображения категории «Автоматизация управления»|800px]]
Once opened, a set of configurable parameters under "Automation Management" will be displayed. The user must scroll almost to the bottom of the category and find the toggle labeled "Accurate time synchronization with server". This toggle is turned off by default.
После открытия на странице отобразится доступный для настройки набор параметров категории «Автоматизации управления». Пользователю необходимо проскроллить почти до конца категории и найти переключатель «Точная синхронизация времени с сервером». По умолчанию данный переключатель выключен.
[[File:Неактивированный_переключатель_времени.png|thumb|center| Example of the "Accurate time synchronization with server" toggle |800px]]
[[File:Неактивированный_переключатель_времени.png|thumb|center| Пример отображения переключателя «Точная синхронизация времени с сервером»|800px]]
After clicking the toggle, it will be activated, and two more fields will appear:
После клика по переключателю он активируется и перед пользователем появится еще два поля:
* Allowable time deviation allows the user to enter a numeric value for the acceptable time difference between the device and the server. Measured in seconds. Minimum value is 5 (default), maximum is 300.
* Допустимое расхождение во времени позволяет прописать числовое значение расхождения времени между устройством и сервером. Измеряется в секундах. Минимальное значение — 5 (установлено по умолчанию), максимальное — 300.
* Request frequency allows the user to enter a numeric value for the number of requests sent to the server. Measured in minutes. Minimum value is 15, maximum is 1440.
* Частота запросов позволяет прописать числовое значение для количества запросов к серверу. Измеряется в минутах. Минимальное значение — 15, максимальное — 1440.
[[File:Параметры_синхронизации_серверов.png|thumb|center| Example of server synchronization parameters |800px]]
[[File:Параметры_синхронизации_серверов.png|thumb|center| Пример отображения параметров синхронизации с сервером|800px]]
The final step is to click the "Save changes" button at the bottom of the screen and check whether synchronization has occurred on the devices.
Последним шагом для пользователя — нажать на кнопку «Сохранить изменения» в нижней части экрана и проверить произошла ли синхронизация на устройствах.  
== '''Video Guide''' ==  
== '''Видеоинструкция''' ==  
[https://vkvideo.ru/video-227547238_456239108 Time Synchronization with NTP Server]
[https://vkvideo.ru/video-227547238_456239108 Синхронизация времени с NTP-сервером]
== '''Additional Information''' ==
== '''Дополнительная информация''' ==
If this article doesn’t help you use the feature as intended, or if you still have questions after reading it, you can ask them in the "Discussion" section at the top of the page.
Если данная статья не помогает использовать функционал по назначению или после ее прочтения остаются вопросы, их можно озвучить в разделе "Обсуждения" вверху страницы.
[[File:Обсуждение_синхронизации_с_сервером.png|thumb|center| Example of the "Discussion" tab on the wiki page |800px]]
[[File:Обсуждение_синхронизации_с_сервером.png|thumb|center| Пример отображения вкладки «Обсуждения» на wiki-странице |800px]]
Additional information can also be found on the page [[How users can interact with the "Discussions" section]]
Также дополнительную информацию можно узнать на странице [[Как взаимодействовать пользователю с разделом "Обсуждения"]]
</div>

Текущая версия от 06:22, 26 декабря 2025

Description of the Situation

The SmartPlayer development team has implemented another feature that enables synchronization between the server and the device via the NTP protocol, directly from the user dashboard. This solution allows users to minimize time discrepancies and manually configure them according to broadcast requirements and device capabilities.

How It Works

NTP (Network Time Protocol) is a network mechanism for time synchronization, designed to transmit the accurate current time from a specialized server to devices on a network.

For proper functioning of applications and services, Android devices require accurate system time. The device's built-in clock may drift over time, so NTP synchronization is used.
When an internet connection is available, the device automatically contacts the time server (NTP). The server sends the current time, after which the system gently adjusts the device’s internal clock. This correction is handled by the operating system and is invisible to the user.
All applications on the device use the already synchronized system time and do not perform separate time checks themselves. This ensures the proper functioning of schedules, event logs, timers, and network connections.

If network access is temporarily unavailable, the device continues to operate using the current time. Once the connection is restored, synchronization is performed automatically.

Operating Principle

This functionality allows users to minimize the time difference between the device and the server through a dedicated settings block. All these settings are available in the device settings within the SmartPlayer user dashboard.
To use this feature, the user must register/log in to their SmartPlayer account.
Next, go to the "Devices" section in the dashboard and select the desired device.

Example of the selected device in the dashboard

Clicking on the device opens the device control panel on the right side of the screen. In this panel, the user needs to locate the "Settings" section.

Example of the "Settings" option in the device control panel

A new page with a list of settings categories will then open. In this case, the required category is "Automation Management". The user should click on this category.

Example of the "Automation Management" category

Once opened, a set of configurable parameters under "Automation Management" will be displayed. The user must scroll almost to the bottom of the category and find the toggle labeled "Accurate time synchronization with server". This toggle is turned off by default.

Example of the "Accurate time synchronization with server" toggle

After clicking the toggle, it will be activated, and two more fields will appear:

  • Allowable time deviation — allows the user to enter a numeric value for the acceptable time difference between the device and the server. Measured in seconds. Minimum value is 5 (default), maximum is 300.
  • Request frequency — allows the user to enter a numeric value for the number of requests sent to the server. Measured in minutes. Minimum value is 15, maximum is 1440.
Example of server synchronization parameters

The final step is to click the "Save changes" button at the bottom of the screen and check whether synchronization has occurred on the devices.

Video Guide

Time Synchronization with NTP Server

Additional Information

If this article doesn’t help you use the feature as intended, or if you still have questions after reading it, you can ask them in the "Discussion" section at the top of the page.

Example of the "Discussion" tab on the wiki page

Additional information can also be found on the page How users can interact with the "Discussions" section