"What time is it?" aksed the microcontroller

This is a discussion on "What time is it?" aksed the microcontroller within the Linux Networking forums, part of the Linux Forums category; Assume that we have a group of computers. Some of them are PCs and others are small microcontroller boards of ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-21-2004
 
Posts: n/a
Default "What time is it?" aksed the microcontroller

Assume that we have a group of computers. Some of them are PCs and others
are small microcontroller boards of different types. Some of the PCs running
Linux and others running Windows, vxWorks or QNX. Microcontroller boards
have no operating system but some embedded program that we are going to
provide.

Our mission is "some how" synchronize their time as accurate as possible.
What we are going to debate is the following special cases;
1. All computers (PCs and controllers) are placed next to each other and
we are free to connect them together any way we want (freedom in electronics
and in sw).
2. Computers are in the same room but separated from each other with few
meters
3. Computers are in different rooms of the same building.
4. Computers are in the same campus.
5. Computers would be anyware (in the same town or city, country,
continent, on the world or near Earth orbits).

What would be your suggestions ? How to connect them together? Which sort of
HW and SW would you use ? How accurate the time sync. you would acheive
(minute, secont, milli sec, micro sec, nano sec )?


Reply With Quote
  #2 (permalink)  
Old 05-21-2004
Mark A. Odell
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

<jiang> wrote in news:40ae398e$0$31679$afc38c87@news.optusnet.com.a u:

Note: you have exceeded the polite, 3 newsgroup cross-post limit. Please
don't blast you question to every newsgroup on the planet.

> Assume that we have a group of computers. Some of them are PCs and
> others are small microcontroller boards of different types. Some of the
> PCs running Linux and others running Windows, vxWorks or QNX.
> Microcontroller boards have no operating system but some embedded
> program that we are going to provide.


Have you read the RFC for NTP? What features of NTP might you make use of
in solving your problem? Re-inventing the wheel becomes quite boring.

--
- Mark ->
--
Reply With Quote
  #3 (permalink)  
Old 05-21-2004
Markus Zingg
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

>What would be your suggestions ? How to connect them together? Which sort of
>HW and SW would you use ? How accurate the time sync. you would acheive
>(minute, secont, milli sec, micro sec, nano sec )?


Take a look at the NTP protocol ( RFC1305 ). IMHO this covers fairly
well what you need.

Markus

Reply With Quote
  #4 (permalink)  
Old 05-21-2004
rickman
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

jiang wrote:
>
> Assume that we have a group of computers. Some of them are PCs and others
> are small microcontroller boards of different types. Some of the PCs running
> Linux and others running Windows, vxWorks or QNX. Microcontroller boards
> have no operating system but some embedded program that we are going to
> provide.
>
> Our mission is "some how" synchronize their time as accurate as possible.
> What we are going to debate is the following special cases;
> 1. All computers (PCs and controllers) are placed next to each other and
> we are free to connect them together any way we want (freedom in electronics
> and in sw).
> 2. Computers are in the same room but separated from each other with few
> meters
> 3. Computers are in different rooms of the same building.
> 4. Computers are in the same campus.
> 5. Computers would be anyware (in the same town or city, country,
> continent, on the world or near Earth orbits).
>
> What would be your suggestions ? How to connect them together? Which sort of
> HW and SW would you use ? How accurate the time sync. you would acheive
> (minute, secont, milli sec, micro sec, nano sec )?


What class is this for? If I give you an answer, do I get the credit
for the grade in the class?

I don't know how to compensate for the time of travel of a the signal
(only an issue for the last situation), but WWV in Colorado USA
broadcasts a time signal that can be used anywhere on earth if you can
receive the signal. By synchronizing to a common source, you can sync
all your computers. Another common source is the GPS system, but again,
you have to be able to receive the signals which precludes some
locations.

--

Rick "rickman" Collins

rick.collins@XYarius.com
Ignore the reply address. To email me use the above address with the XY
removed.

Arius - A Signal Processing Solutions Company
Specializing in DSP and FPGA design URL http://www.arius.com
4 King Ave 301-682-7772 Voice
Frederick, MD 21701-3110 301-682-7666 FAX
Reply With Quote
  #5 (permalink)  
Old 05-21-2004
Glen Atkins
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

Another option is IEEE 1588, it's a time sync protocol.


"rickman" <spamgoeshere4@yahoo.com> wrote in message
news:40AE4A9C.28B57BAC@yahoo.com...
> jiang wrote:
> >
> > Assume that we have a group of computers. Some of them are PCs and

others
> > are small microcontroller boards of different types. Some of the PCs

running
> > Linux and others running Windows, vxWorks or QNX. Microcontroller boards
> > have no operating system but some embedded program that we are going to
> > provide.
> >
> > Our mission is "some how" synchronize their time as accurate as

possible.
> > What we are going to debate is the following special cases;
> > 1. All computers (PCs and controllers) are placed next to each other

and
> > we are free to connect them together any way we want (freedom in

electronics
> > and in sw).
> > 2. Computers are in the same room but separated from each other with

few
> > meters
> > 3. Computers are in different rooms of the same building.
> > 4. Computers are in the same campus.
> > 5. Computers would be anyware (in the same town or city, country,
> > continent, on the world or near Earth orbits).
> >
> > What would be your suggestions ? How to connect them together? Which

sort of
> > HW and SW would you use ? How accurate the time sync. you would acheive
> > (minute, secont, milli sec, micro sec, nano sec )?

>
> What class is this for? If I give you an answer, do I get the credit
> for the grade in the class?
>
> I don't know how to compensate for the time of travel of a the signal
> (only an issue for the last situation), but WWV in Colorado USA
> broadcasts a time signal that can be used anywhere on earth if you can
> receive the signal. By synchronizing to a common source, you can sync
> all your computers. Another common source is the GPS system, but again,
> you have to be able to receive the signals which precludes some
> locations.
>
> --
>
> Rick "rickman" Collins
>
> rick.collins@XYarius.com
> Ignore the reply address. To email me use the above address with the XY
> removed.
>
> Arius - A Signal Processing Solutions Company
> Specializing in DSP and FPGA design URL http://www.arius.com
> 4 King Ave 301-682-7772 Voice
> Frederick, MD 21701-3110 301-682-7666 FAX




Reply With Quote
  #6 (permalink)  
Old 05-21-2004
Christopher Browne
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

<jiang> wrote:
> Assume that we have a group of computers. Some of them are PCs and others
> are small microcontroller boards of different types. Some of the PCs running
> Linux and others running Windows, vxWorks or QNX. Microcontroller boards
> have no operating system but some embedded program that we are going to
> provide.
>
> Our mission is "some how" synchronize their time as accurate as possible.


Use NTP.

<http://www.ntp.org/>
--
"cbbrowne","@","ntlug.org"
http://www3.sympatico.ca/cbbrowne/postgresql.html
First Rule of Computer Security
- Only forbid that which can be made impossible.
- Facilitate the possible.
- Have the wisdom to explain the difference.
-- Mark Miller
Reply With Quote
  #7 (permalink)  
Old 05-23-2004
Michael
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

Assume that someone find a magical way to sync all omputers with the
accuracy you want.
How can you verify that?


Reply With Quote
  #8 (permalink)  
Old 05-24-2004
robin.pain@tesco.net
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

<jiang> wrote in message news:<40ae398e$0$31679$afc38c87@news.optusnet.com. au>...
> Assume that we have a group of computers. Some of them are PCs and others
> are small microcontroller boards of different types. Some of the PCs running
> Linux and others running Windows, vxWorks or QNX. Microcontroller boards
> have no operating system but some embedded program that we are going to
> provide.
>
> Our mission is "some how" synchronize their time as accurate as possible.
> What we are going to debate is the following special cases;
> 1. All computers (PCs and controllers) are placed next to each other and
> we are free to connect them together any way we want (freedom in electronics
> and in sw).
> 2. Computers are in the same room but separated from each other with few
> meters
> 3. Computers are in different rooms of the same building.
> 4. Computers are in the same campus.
> 5. Computers would be anyware (in the same town or city, country,
> continent, on the world or near Earth orbits).
>
> What would be your suggestions ? How to connect them together? Which sort of
> HW and SW would you use ? How accurate the time sync. you would acheive
> (minute, secont, milli sec, micro sec, nano sec )?


Ah yes, now I remember why I fled university.

Robin
Reply With Quote
  #9 (permalink)  
Old 05-24-2004
robin.pain@tesco.net
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

<jiang> wrote in message news:<40ae398e$0$31679$afc38c87@news.optusnet.com. au>...
> Assume that we have a group of computers. Some of them are PCs and others
> are small microcontroller boards of different types. Some of the PCs running
> Linux and others running Windows, vxWorks or QNX. Microcontroller boards
> have no operating system but some embedded program that we are going to
> provide.
>
> Our mission is "some how" synchronize their time as accurate as possible.
> What we are going to debate is the following special cases;
> 1. All computers (PCs and controllers) are placed next to each other and
> we are free to connect them together any way we want (freedom in electronics
> and in sw).
> 2. Computers are in the same room but separated from each other with few
> meters
> 3. Computers are in different rooms of the same building.
> 4. Computers are in the same campus.
> 5. Computers would be anyware (in the same town or city, country,
> continent, on the world or near Earth orbits).
>
> What would be your suggestions ? How to connect them together? Which sort of
> HW and SW would you use ? How accurate the time sync. you would acheive
> (minute, secont, milli sec, micro sec, nano sec )?


Ah yes, now I remember why I fled university.

Robin
Reply With Quote
  #10 (permalink)  
Old 05-28-2004
George Neuner
 
Posts: n/a
Default Re: "What time is it?" aksed the microcontroller

On Mon, 24 May 2004 00:45:29 +1000, "Michael" <Michael Mich> wrote:

>Assume that someone find a magical way to sync all omputers with the
>accuracy you want.
>How can you verify that?
>


Easy ... just use Thiotimoline based components and slave them all to
a common clock source.

George
=============================================
Send real email to GNEUNER2 at COMCAST o NET
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0