prof-braino / propforth

Automatically exported from code.google.com/p/propforth
3 stars 0 forks source link

request for goterm + time #212

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Enhancement to Goterm/GoMuxTerm for time support:

The request is for the PC side Go language support

Some command (E.G. ctl^T) issued in the terminal session
sends the current PC system time (and appropriate word identifier) to the 
propforth target.

On the prop, the time support includes a word that 
- accepts an external system time,
- sets the propforth time
- returns the propforth time to the PC
- The PC determines the round trip time, and adjusts for the transmision delay, 
and resend the adjusted time
- Process repeats until the time is in sync (withing N ticks or after N 
iterations)

A second command (E.G ctl^t) issuesd at the terminal session
sends the current PC systtem time (and appropriate word identifier) to the 
propforth target. 

On the prop, the time support includes a word that 
- accepts an external system time,
- compares to propforth time
- determines the time delta since time was set
- determines the drift in seconds per day
- add the new drift offset to the current drift offset. 

Original issue reported on code.google.com by prof.bra...@gmail.com on 27 Nov 2013 at 1:31

GoogleCodeExporter commented 8 years ago
retrofit the time correction from ds1302 to time.f

Original comment by prof.bra...@gmail.com on 1 Dec 2013 at 3:45

GoogleCodeExporter commented 8 years ago

Original comment by prof.bra...@gmail.com on 1 Dec 2013 at 3:46

GoogleCodeExporter commented 8 years ago
add script to goterm to send time.

Original comment by prof.bra...@gmail.com on 1 Dec 2013 at 3:49