[time-nuts] GPS Outage

Martin Burnicki martin.burnicki at burnicki.net
Mon Feb 29 10:31:16 UTC 2016


Hal,

Hal Murray wrote:
> 
> martin.burnicki at burnicki.net said:
>>> Strange that at least 3 independant firmware trees/development teams should
>>> chose the same magic wk860.
> 
>> I don't find it strange. If the next firmware version is based on the
>> previous version and none of the developers has stumbled across this
>> potential problem earlier ... 
> 
> That sounds like poor software engineering.  Or poor engineering management.
> 
> The wk860 is supposed to represent the build time of the software ...

Do you *know* this, or are you just *assuming* this? ;-)

> so it will 
> work for 20 years from when it was built rather than 20 years from when the 
> 10 bit week counter last rolled over or 20 years from when the constant was 
> last updated.

There are also approaches where the proper extension of a week number
doesn't just work within a single 1024 week cycle with some hardcoded
limit, like this simple example:

if ( wn < 860 )
  wn += 1024;

There may always be pieces of code which generate a faulty result under
certain conditions, and no stumbles across this even in reviews until it
really happens.

I'm not aware of *any* project where each single line of code is checked
once again whenever a new release is rolled out.

Martin




More information about the Time-nuts_lists.febo.com mailing list