Time Settings; Query The Timezone; Enable Network Time Protocol (Ntp); Enable Getting Ntp From Dhcp Server - Lightware RAP-B511-EU-K User Manual

Room automation panel
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.4. Time Settings
7.4.1. Query the Timezone
Command and Response
SET·/SYS/MB/TIMEZONE.Timezone=<timezone>
Ý
Ü pw·/SYS/MB/TIMEZONE.Timezone
Parameters
<timezone>
Time zone setting in POSIX TZ format.
Example
Ý SET /SYS/MB/TIMEZONE.Timezone=CET-1CEST,M3.5.0/2,M10.5.0/3
Ü pw /SYS/MB/TIMEZONE.Timezone=CET-1CEST,M3.5.0/2,M10.5.0/3
TIPS AND TRICKS: Timezone and daylight saving settings can be done easily and quickly with Lightware
Device Controller software in

Time Settings

7.4.2. Enable Network Time Protocol (NTP)
Enabling Network Time Protocol means, that the RAP-B511 is permitted to get time information from an
NTP server. The device time synchronized repeatedly and automatically.
Command and Response
SET·/SYS/MB/NTP.Enable=<enable_ntp>
Ý
pw·/SYS/MB/NTP.Enable=<enable_ntp>
Ü
Parameters
<enable_ntp>
true: NTP enabled
false: NTP disabled
Example
Ý SET /SYS/MB/NTP.Enable=true
Ü pw /SYS/MB/NTP.Enable=true
=<timezone>
section.
RAP-B511 series – User's Manual
7.4.3. Enable Getting NTP from DHCP server
When the DHCP server assigns an IP address to the device, there is an option to request an NTP time
information. When the RAP-B511 connected to the internet, the NTP time is updated repeatedly.
Command and Response
SET·/SYS/MB/NTP.NtpServerFromDhcp=<enable_ntp_dhcp>
Ý
pw·/SYS/MB/NTP.NtpServerFromDhcp=<enable_ntp_dhcp>
Ü
Parameters
<enable_ntp_dhcp>
true: Enable getting NTP from DHCP server
false: Disable getting NTP from DHCP server
Example
Ý SET /SYS/MB/NTP.NtpServerFromDhcp=true
Ü pw /SYS/MB/NTP.NtpServerFromDhcp=true
7.4.4. Query the Active NTP Server
Command and Response
Ý GET·/SYS/MB/NTP.ActiveNtpServer
pr·/SYS/MB/NTP.ActiveNtpServer=<server_address>
Ü
Parameters
<server_address>
NTP server address (IP address or URL)
Example
Ý GET /SYS/MB/NTP.ActiveNtpServer
Ü pr /SYS/MB/NTP.ActiveNtpServer=pool.ntp.org
7.4.5. Set NTP server
Command and Response
SET·/SYS/MB/NTP.NtpServer=<server_address>
Ý
pw·/SYS/MB/NTP.NtpServer=<server_address>
Ü
Parameters
<server_address>
NTP server address (IP address or URL)
Example
Ý SET /SYS/MB/NTP.NtpServer=pool.ntp.org
Ü pw /SYS/MB/NTP.NtpServer=pool.ntp.org
48

Advertisement

Table of Contents
loading

Table of Contents