Questions tagged [clock-synchronization]

33 questions
77
votes
8 answers

The best way to synchronize client-side javascript clock with server date

I have a task to show digital clock (with minutes precision) on HTML page in some fixed timezone (MSK or MSD - depending on current date). I'd like to avoid relying on client system clock, so some synchronization with server is required. HTTP server…
n0s
  • 873
  • 1
  • 7
  • 7
17
votes
0 answers

How to synchronize two Android Phones Clock (upto msec)? or Get EXACT difference?

People! I thought to include it in original question but didn't. WHILE VOTING, YOU ARE ALLOWED TO COMMENT WHY DID YOU VOTE? Please use it to enable learners get theirs things done and convey their thoughts/issues to others better way. Not everyone…
user263210
  • 417
  • 1
  • 5
  • 16
14
votes
8 answers

Clock on webpage using server and system time?

I need to add a clock to a web page. The clock needs to be synchronized with a server but I really don't want to have it constantly check the server as the page will be open 24/7 on several PCs. Is there some way to get the time from the server and…
Shawn
  • 2,356
  • 6
  • 48
  • 82
13
votes
2 answers

How do I establish clock synchronization in the cloud (AWS, heroku, etc) across many nodes?

I would like to run a large cluster of nodes in the cloud (AWS, Heroku, or maybe self-manged VMS), whose clocks must be synchronized with a predefined tolerance in mind. I'm looking for a tolerance of maybe 200 ms. That means if I have 250 nodes,…
Bernie Habermeier
  • 2,580
  • 2
  • 22
  • 20
8
votes
4 answers

Is there an off-the-shelf clock synchronization solution for Java?

We have a large high-performance software system which consists of multiple interacting Java processes (not EJBs). Each process can be on the same machine or on a different machine. Certain events are generated in one process, and are then…
Uri
  • 88,451
  • 51
  • 221
  • 321
4
votes
1 answer

How to synchronise clocks in a local network?

Let us assume we have a number of systems connected in a local network and is not connected to the internet. What can be best way to ensure that each of these clocks are in sync? It is not necessary that they be in sync with the UTC time but is…
AvisekS
  • 86
  • 1
  • 5
3
votes
2 answers

Synchronizing time between smartphone and pc/embedded device

I have to measure and verify the latency of messages being sent wirelessly via WiFi/Bluetooth from smartphone to pc. The distance varies between 5 and 10 meters. Example: message sent from smartphone at time X, received and processed at time Y.…
Gannic
  • 263
  • 1
  • 3
  • 10
3
votes
1 answer

Using GPS for time synchronization, what does the timestamp in the Android onNmeaReceived callback represent?

In Android development (latest SDK) I am using the GpsStatus.NmeaListener to parse NMEA messages for time synchronization. In the onNmeaReceived(long timestamp, String nmea) callback I parse the nmea string for GPRMC messages. I then calculate the…
Kamminga
  • 51
  • 7
3
votes
1 answer

How to sync the clocks in Raspberry Pi?

I'm new to raspberry pi, trying to send a stream of bits from sender to receiver. However bits are not received in correct pattern most of the times, they seems to be shifted a little. I think i'm unable to synchronize them properly. Does anyone how…
3
votes
1 answer

Purpose of NTP vs. ICMP Timestamp message

I know the purpose of the Network Time Protocol is to synchronize clocks over networks, primarily with the use of the Originate, Receive and Transmit timestamps to make the time calculations. But, the ICMP protocol also has a Timestamp control…
Reflection
  • 1,936
  • 3
  • 21
  • 39
2
votes
0 answers

How to remove time info from WCF messages?

I was trying to set maxclockskew for a secure service being consumed in a Silverlight client. The things I tried have been summarized in related post How to fix the WCF maxClockSkew problem in a HTTPS Silverlight application context? As I also have…
Nitesh
  • 2,681
  • 4
  • 27
  • 45
2
votes
0 answers

Will the GPSD supports the U-blox EVK-M8N and EVK-M8T that are based on LEA-M8 series

I read from the following links: http://www.catb.org/gpsd/gpsd-time-service-howto.html#_choice_of_hardware, and http://catb.org/gpsd/hardware.html, in which the U-blox EVK 6H is suggested to work with the open-source GPSD and NTPD for time…
coder
  • 71
  • 2
  • 7
2
votes
2 answers

What is the difference between internal and external clock synchronization in distributed systems?

What is the difference between internal and external clock synchronization in distributed systems?
2
votes
4 answers

FIFO with 2 clocks in VHDL

I have a problem with a vhdl assignment. I need to create a FIFO buffer between a bus of 500MHz and another bus of 30MHz. I have designed a basic FIFO buffer with inputs: Data_in, Write_EN, CLK_500, Read_EN, CLK_30, FlushFIFO. outputs: Data_out,…
1
vote
1 answer

clock domain crossing of a mutli bit signal

I have to use a multibit counter signal in another clock domain from the one that is generated. If there is no relation between the 2 clocks, is it safe to use gray code and classic 2 sync FFs and just read the coded value after that (just like it…
1
2 3