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

    • How to build a Private LoRaWAN Network using the R1520LG Built-in ChirpStack

      ChirpStack R1520LG Integration Guide: Building Private LoRaWAN Networks Summary In this comprehensive guide, we explore the integration of ChirpStack, the leading open-source LoRaWAN network server, with Robustel’s R1520LG Industrial LoRa Gateway. ...
    • 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 Connect Your Device to RCMS

      Overview This guide describes how to connect your Robustel device to the Robustel Cloud Manager Service (RCMS) You will learn how to prepare the hardware, add the device to the cloud platform, and enable the connection via the Web interface, CLI, or ...
    • 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 KNX API Server on Robustel EG5120

      Overview The Robustel EG5120 is a high-performance industrial edge computing gateway. Robustel is proud to be the first manufacturer globally to achieve official KNX API Server certification, providing a standardized, secure, and modern interface for ...