Hi Terje! Thanks for your reply.
I switched again to mode 4 and started again to see if I missed something. I believe I'll only have to wait 10000 seconds = 2 hours and 46 minutes... not much. :-) Unfortunatelly clockstats doesn't show position, only time. I believe this is because it's in position lock (0D?) mode. Here's a sample: 55810 40276.220 127.127.30.0 3524296275.999957838 2011 249 11 11 16 15 rstat 08 dop 0.0 nsat 10,2 traim 1,0,1 sigma 77 neg-sawtooth -24 sat 35000080 By the way... I was looking at the clockstats file and noticed that when I switched to mode 4 as I said earlier I got this 55810 40560.366 127.127.30.0 ONCORE[0]: Loading Posn from SHMEM 55810 40560.367 127.127.30.0 ONCORE[0]: Setting Posn and Time after Loading Almanac 55810 40562.091 127.127.30.0 ONCORE[0]: Posn: 55810 40562.091 127.127.30.0 ONCORE[0]: Lat = N 41.1745319deg, Long = W 8.6560764deg, Alt = 146.72m (481.36ft) GPS 55810 40562.091 127.127.30.0 ONCORE[0]: Lat = N 41deg 10.4719m, Long = W 8deg 39.36458m, Alt = 146.72m ( 481.36ft) GPS 55810 40562.091 127.127.30.0 ONCORE[0]: Lat = N 41deg 10m 28.32s, Long = W 8deg 39m 21.88s, Alt = 146.72m ( 481.36ft) GPS 55810 40564.365 127.127.30.0 ONCORE[0]: Waiting for Almanac 55810 40567.365 127.127.30.0 ONCORE[0]: Have now loaded an ALMANAC 55810 40567.365 127.127.30.0 ONCORE[0]: state = ONCORE_RUN It seems this is my location... :-) Now you know where I live! :-) So the position is stored in the shared memory and when I reset the unit (mode 4) it uses the position stored in there. Anyone help care to comment this? Cheers, Miguel On 6 September 2011 12:33, Terje Mathisen <"terje.mathisen at tmsw.no"@ ntp.org> wrote: > Miguel Gonçalves wrote: > >> 2. When surveying finishes (ONCORE_SS_DONE) where can I get the surveyed >> position to save it to /etc/ntp.oncore.0? What is the best procedure? I >> don't want to survey every time I power up the unit... (the unit has no >> backup power) >> > > Afair the position got written to the log file at that point, then you only > have to copy it into the config file and change mode to "use surveyed > position". > > It is 10+ years since I last needed to do this, so I might be > mis-remembering, in which case you might find the (raw) info you need in the > clockstats log? > > Terje > > -- > - <Terje.Mathisen at tmsw.no> > "almost all programming can be viewed as an exercise in caching" > > ______________________________**_________________ > questions mailing list > [email protected] > http://lists.ntp.org/listinfo/**questions<http://lists.ntp.org/listinfo/questions> > _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
