How to enble NTP server on Windows System to sync the time with Robustel device in a private network?

How to enble NTP server on Windows System to sync the time with Robustel device in a private network?

Overview

The customer's factory operates on a pure internal network. Our R5020Lite gateway is required to collect data and transmit it to the factory's server database (Windows Server) for storage. Simultaneously, as the database has an MQTT program enabled, time synchronization with the gateway is necessary for proper communication.

What You Will Need

Hardware List:

1x Robustel R5020Lite Gateway

1x Ethernet Cable

1x Computer

Step-by-Step Configuration Guide

Step 1: Execute services.mscfrom the Run window and confirm that the Windows Time service is set to start automatically.


Step 2: Enter the Powershell interface and type in the corresponding command


  1. w32tm /config /manualpeerlist:"127.0.0.1" /syncfromflags:manual /reliable:yes /update
  2. Restart-Service w32Time

(Configure the clock source to local COMS time)

  1. Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\TimeProviders\NtpServer" -Name "Enabled" -Value 1

(Enable the service)

  1. Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Config" -Name "AnnounceFlags" -Value 5

(Modify to a reliable clock source)

  1. Restart-Service w32Time

(Restart the time service to complete)

Verification and Testing

R5020Lite——PC(NTP Server:192.168.0.35)


Revision History

Version

Date

Author

Changes

1.0

2025-09-23

Tony Li

Initial documentation


    • Related Articles

    • RobustOS Pro Device Status Query Manual (USI)

      1. Overview 1.1 What is USI USI (Unified Status Interface) is a unified status query interface provided by the RobustOS Pro system, used to view device running status, network connection information, traffic statistics, and various other system ...
    • How to Set NTP via Command Line

      Understanding the Configuration Structure First, it's helpful to understand how to access the complete configuration structure: 1. You can download the XML configuration from: Web UI → System → Profile → XML Configuration File → Generate → Download ...
    • How to Install balenaOS + Get Started with Go Development: Practical Guide for Robustel EG5120

      In this guide, we will help you get started with balenaCloud by: Setting up your Robustel EG5120 i.MX8MP device and bringing it online on the balenaCloud dashboard. Deploying a Go hello-world project on the device. Developing the sample project: ...
    • How to Troubleshoot Non-Real-Time Data Transmission in Robustel Gateway's Edge to Cloud Function

      Overview Recently, customers have reported that when using the Robustel gateway's Edge to Cloud function, after collecting data from Siemens PLCs at the south end, the data transmitted via MQTT to the MES system at the north end is not real-time. For ...
    • How to Save System Logs to NVM (Non-Volatile Storage)

      Overview By default, gateway system logs may be stored in RAM (memory), which means the content is lost after a power cycle. Configuring the log save location to NVM (Non-Volatile Memory) ensures that system logs are retained persistently across ...