Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
32 views

Test if synchronised to NTP without realtime clock [closed]

I would like to test if a system is synchronised with an NTP server. I'm on a Yocto-based Linux system, using systemd, and I'm using ntpd as my NTP client. I've found this answer which provides a ...
jezza's user avatar
  • 378
0 votes
0 answers
9 views

How can I sync my laptop time with BD-Spot dog? it doesn't let me do SSH so I can't use NTP

when I am moving the Spot using Joystick and ROS it the time difference between robot and my laptop slowly increases and after 1 minutes it rejects all of my joystick commands with this error: The ...
Amin Nabipour's user avatar
0 votes
0 answers
21 views

Cisco Phone XML timezone baghdad time error

I'm trying to edit the configuration of cisco cp-7821 cnf.xml file to make the timezone for Asia/Baghdad, but to no avail, the code is below: <dateTimeSetting> <dateTemplate>D/M/YA&...
Abrahim Hussein's user avatar
0 votes
0 answers
28 views

NTP configuration : authentication, authorization and syslog

I hope you are fine, I build a three NTP servers each with (chrony , openntpd and NTPsec ) and one ubuntu server that Monitoring NTP Traffic : 1- Zeek and Suricata generate logs 2- Logs are sent to ...
faten-zz's user avatar
0 votes
1 answer
68 views

How do I route time to chrony from TCP socket?

I have a modem that can forward GPS time to a TCP socket, these are GGPA sentences, I would like to get this information to chronyd so I can use chronyd as the single source of time sync in the system....
user1470618's user avatar
0 votes
0 answers
57 views

When I configured ntp time synchronization, some problems occurred

systemctl status ntp ● ntp.service - Network Time Service Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2024-06-17 18:...
TommyShelby's user avatar
2 votes
2 answers
150 views

How to fix the Y2036 NTP problem in ANSI C on a 32bit embedded system without OS

As the year 2036 slowly (but inevitably) approaches, we have concerns about our SNTP time syncing algorithm, which is now really simple: // NTP structure received in udp_data_buffer uint32_t ntpStamp =...
tk_'s user avatar
  • 550
0 votes
0 answers
80 views

Pi not setting RTC time via NTP when saved as main.py

I have written some micropython code thats working as I had hoped in Thonny (making a gadget to assist my wife remembering which boob was last used when breastfeeding). I have used some code from &...
jacko_123's user avatar
0 votes
0 answers
23 views

How can I configure Windows Time Service to only sync on demand?

Is there any way to configure the Windows Time Service to ONLY perform a sync when a w32tm /resync is explicitly issued? i.e. no other periodic polling/syncing or clock adjustments to be performed at ...
GrahamS's user avatar
  • 10.2k
1 vote
0 answers
51 views

ntpq query request timed out

I have deployed ntpsec pod in kubernetes using the helm chart. And I need to collect the peer metrics of the ntpsec for which I am using ntpq -p -n <LB_VIP>. My motto is to run the ntpq command ...
Amit Goud's user avatar
0 votes
0 answers
59 views

trying to use 'struct hostnet' from netdb.h, but it's saying 'invalid use of undefined type

I'm writing in STM32CubeIDE v1.15.0 for a Nucleo-F756ZG I want to get a timestamp from a NTP server and I found a guide with a link to this code: https://github.com/lettier/ntpclient/blob/master/...
Stefan Andrei Ghiță's user avatar
0 votes
0 answers
22 views

syncing time between client and server [duplicate]

hi i am trying to sync time between my javascript server and client. I send time in miliseconds that passed since epoch and compare it to miliseconds since epoch on client, then i add difference to ...
Ten GoliBroda's user avatar
0 votes
0 answers
33 views

How to make sysctl and gettimeofday thread-safe in Swift?

I am trying to sync the ntp time from the server using Kronos library. However, I believe the code is not fully protected from multithreading access since it is using low level system code. So, does ...
Yung Kien Poh's user avatar
0 votes
0 answers
40 views

Is there an api to set ntp time server for android? [duplicate]

I know that from ADB, to set the time server on Android for ntp you can use the command: adb shell /system/bin/settings put global ntp_server SERVER Where SERVER would be the new ntp time server. ...
Ken K's user avatar
  • 839
0 votes
0 answers
56 views

ntpdig/sntp sometimes output "weird" correct time

I am trying to get correct estimated time from an ntp server. Every once in a while ntpdig returns "weird" output. # Weird, it contains 5 or even less digits in a fractional part of the ...
jackzee's user avatar
  • 29
0 votes
1 answer
395 views

Configure NTP server and port for systemd-timesyncd [closed]

I am trying to configure the NTP server and port for systemd-timesyncd in /etc/systemd/timesyncd.conf under [TIME] section with NTP value. NTP=time.google.com:123 And then I restart systemd-timesyncd ...
Keyur Thumar's user avatar
0 votes
0 answers
115 views

How to see the absolute time distributed by ptp4l?

I'm trying to set up time synchronization using PTP (Precision Time Protocol) between my local computer and a hardware device that supports PTP. My computer gets its time via NTP from the internet; ...
oliver's user avatar
  • 6,459
0 votes
0 answers
159 views

How can I make ntpd work with FIPS openssl3?

I have a kirkstone yocto linux build with ntpd [email protected] Tue 23 Jun 2020 09:22:22 AM UTC (1) and OpenSSL 3.0.5 5 Jul 2022 (Library: OpenSSL 3.0.5 5 Jul 2022). I have enabled FIPS for openssl, ...
Dave's user avatar
  • 9
2 votes
1 answer
714 views

Automatic Time Zone detection

How do devices such as computers or mobile phones obtain the time zone information to automatically set their clock? I am developing a microcontroller-based embedded system with Ethernet capability ...
HV16's user avatar
  • 149
0 votes
0 answers
278 views

Python: Elapsed time without using system clock

I need to measure the elapsed time of a program that waits for an input. However, my system clock will not be stable when measuring this - I am using a Pi 0 that does not have an RTC, so on bootup the ...
anonymousaga's user avatar
0 votes
0 answers
63 views

Where can I get the parameters specific to each time zone to use with win32api.SetTimeZoneInformation()?

Is there any way I could get the parameters specific to each time zone to use with the SetTimeZoneInformation API call? The following is an example for the EST time zone. win32api....
School of Iris's user avatar
1 vote
1 answer
2k views

How to get the current time from an NTP server?

Issue I've seen a few ways to do this but not in pure JavaScript. After sending a fetch request to the server I get the HTML of the website, not the necessary time. Parsing it in any way doesn't seem ...
Maksiks's user avatar
  • 17
0 votes
1 answer
99 views

NTP update causing C# Winforms Timer to pause

I'm running C# mono (linux) on raspberry pi .NET 4.5. For the purpose of this simple test program, let's say I've got a simple form with a System.Windows.Forms.Timer. If I let the program run at start-...
pm101's user avatar
  • 1,412
1 vote
0 answers
24 views

Consecutive struct bitfields not behaving as expected. Doesn't appear to be a padding issue

I'm experimenting with the SNTP protocol. While attempting to modify the message struct I ran into issue I cannot explain. Despite the fact that the first 32-bit word contains 6 fields, the struct I ...
mreff555's user avatar
  • 1,091
0 votes
0 answers
819 views

Differente Time drift between Prometheus container and host machine Oracle Linux 8.7 - Cant synchronize with NTP

I have an issue with time in Prometheus Container running on Oracle Linux 8.0. I´ve installed OS with minimal options, after, i ran this commands to adjustime date time. dnf update dnf -y install ...
Ribas's user avatar
  • 31
1 vote
0 answers
91 views

Set NTP flag linux time from c++

Is there a way to turn off NTP synchronization in a linux system from a c++ program, to obtain the same result you get with: timedatectl set-ntp true I have no idea where to start from, also std::...
Davide's user avatar
  • 46
-1 votes
1 answer
694 views

ESP8266 as NTP Server?

I have ESP8266 with RTC-DS3231 stored Time on it how I can set ESP8266 NTP Server to provide time to other local devices I search and I found NTP server with GPS I need only casting time from RTC to ...
XCoder's user avatar
  • 67
-1 votes
1 answer
49 views

Why root time calculated based on time zone, but other users based on UTC

i have a strange problem in time configuration. i set time zone Asia/Tehran by "ln -sf /usr/share/zoneinfo/Asia/Tehran /etc/localtime" in my rhel6 server. time is ok in root user but it ...
a.sadeh's user avatar
0 votes
0 answers
825 views

Test an NTP server from android command line

I have read that what I am trying to do can be done on linux systems using the ntpdate command: ntpdate -d time.google.com which should return a valid time but should not if you give it an address ...
Mark Mercer's user avatar
0 votes
1 answer
58 views

Why we use leap second in kernel and NTP?

UNIX timestamp and many libraries don't support leap second. They don't give more attention to it, and many bugs are caused by leap second. So why we use leap second in NTP and kernel? If we just let ...
iseki's user avatar
  • 65
0 votes
0 answers
88 views

How to measure Time Dilation in Nanoseconds on iOS?

Disclaimer: This a very theoretical idea that I'm experimenting with and I get that there are hard limits to CPU hardware and physics; this is more about seeing how far I can get. The Question: How do ...
Sam Carlton's user avatar
  • 1,375
4 votes
1 answer
1k views

Is it safe to use setInterval in nodejs server environment?

I am currently implementing a nodejs countdown timer. I have a client who requests for the remaining time that the server maintains(timer), and client also has a countdown timer too. Upon implementing ...
jwkoo's user avatar
  • 2,623
0 votes
0 answers
241 views

Stuck in infinite loop trying to sync to NTP server on ESP8266

I am working on a project with an ESP8266 and trying to use a setClock function that, to my understanding, should configure the time based off of the NTP server defined in the 'TIMEZONE' variable. ...
Nathan Bonney's user avatar
0 votes
1 answer
1k views

client and server time sync with new Date()

I am trying to sync time between client and the server as accurate as possible. I've read through lots of articles and most of them recommend us to use NTP time sync, or stream-based protocols such as ...
jwkoo's user avatar
  • 2,623
-2 votes
1 answer
485 views

Embedded Linux distribution executes a NTP client not intentionally installed. But which?

I'm trying to manage the system time of an yocto-base Linux distribution (zeus release) by NTP (Network Time protocol). I know that an available NTP client is ntpdate, bu without installing ntpdate, ...
user avatar
0 votes
1 answer
2k views

Install a NTP Client in an yocto-base embedded Linux distribution

I'm developing a yocto-base Linux distribution by the zeus yocto release. I need to install a NTP client into the distribution and I don't want to install the NTP server inside the image. In zeus ...
user avatar
0 votes
1 answer
571 views

How do you apply round-trip delay when syncing a clock with NTP

The wikipedia page for NTP says two calculations are necessary it to sync a clock: offset round-trip delay Applying the offset to the client clock makes sense, but how does the round-trip delay come ...
Alan W. Smith's user avatar
-3 votes
1 answer
316 views

Changing NTP distributed time locally

I need a solution for a local NTP time server to distribute time adjusted to our local time zone. The issue is the manufacturer of a product we use have updated their hardware to a newer model and ...
Rob's user avatar
  • 1
0 votes
1 answer
894 views

esp-idf NTP without internet

After synchronizing time from NTP, can the time still run after the internet connection is lost? how to keep time update stored in memory without having to connect to the server after rebooting or ...
kikicookie's user avatar
-2 votes
2 answers
113 views

Does puppetlabs/ntp work for windows 10/server?

I am working with puppet and foreman as puppet UI. Trying to sync NTP module with windows agent. It does not work. But it works with Linux centos7 and ubuntu agent. Does anyone guide me, please?
Majedur's user avatar
  • 3,144
0 votes
0 answers
189 views

NTP for esp8266 v. 4 platform

Updated Espressif 8266 to 4.0.1 (platform.io), getting time from NTP stopped working on all esp8266/32s. Silently assumes 1970s. Seemingly ignores configTime(MYTZ, "pool.ntp.org", "...
Les's user avatar
  • 241
4 votes
0 answers
645 views

Gstreamer add a timestamp from a NTP clock

I am using GStreamer to send over UDP multiples camera streams, H264 encoded. I would like to add a timestamp in the metadata from a NTP clock. On the Client side I need to save these multiple streams ...
Hoekbank's user avatar
0 votes
0 answers
1k views

NTP Server in powershell : getting two different results

I have found two different powershell ways to get the FQDN and IP of the NTP server which my desktop is using but they give different results : First way : > (Get-ItemPropertyValue -Path HKLM:\...
SebMa's user avatar
  • 4,553
1 vote
1 answer
208 views

Realtime clock synch across browser clients

I am writing a collaborative music web-app that can be "played" in parallel across browsers in different devices. Imagine two people standing in the same room, and playing their "...
eshalev's user avatar
  • 3,213
0 votes
0 answers
639 views

Retrievieng time offset of local computer with respect to an NTP Server

I am currently developing a c++ code on Windows OS which uses windows api to set and get system time as I need to apply some offset to my local time (in the range of few seconds). As in my final ...
Gaetano Pascarella's user avatar
1 vote
1 answer
2k views

Ubuntu force date and time if NTP can't update

I am running Ubuntu 20.04 on a Raspberry Pi 4. Since it doesn't have a RTC, the date/time can't update unless it is on the network and can get to an NTP server. Sometimes this system is booted up on a ...
GafferMan2112's user avatar
0 votes
1 answer
296 views

Timestamp.now() auto date time for messenger

I'm trying to create an app that allows users to chat with each other and to order the messages i'm using Timestamp.now() ( that works fine ) but the problem is that if the user dont have auto date ...
Wagner Tiburcio's user avatar
1 vote
1 answer
570 views

How create our own NTP pool for internal usage

We have one NTP (Linux) server and some services time is synchronizing with the server. We are going to add another NTP server but we want create pool like public pool in our internal network instead ...
Davoud Teimouri's user avatar
0 votes
0 answers
578 views

ESP32 / M5Core2 updating time for DST

I'd like to have the time automatically adjust for Daylight Saving time without having to do an NTP update. The Core2 device uses a BM8563 RTC chip. The following function sets my timezone and DST ...
jox956's user avatar
  • 1
1 vote
0 answers
2k views

Yocto: set date and time without ntp

on my embedded device with YOCTO and none ethernet connection I would set a specific date and keep it udpdate after the device power-off. I tryed with : date --set '2022-05-25 11:17:00' hwclock --utc ...
H2O's user avatar
  • 173

1
2 3 4 5
14