Quote:
Originally Posted by
Pete-N2 
Quote:
Originally Posted by
Pete-N2 
Even 12 PSIP lines will overflow the the diagnostics text buffer. The last line on the last screen on my DTVPal is truncated but at least the calculated local time infohas been displayed...
There is a hex number on the ident line. It appears to have two values: 0x2203 (the station has not been received recently) and 0x4404 (received -use for time calculations??)
In the last two weeks I have noted the the following errors: 61, 67, 89, 22, 18 seconds and some time during that period two distant stations changed state to 0x4404.
Did anyone read point two? The DTVPal might only use stations that have been received recently?
I read it. I don't know if you're correct but in light of point 3 it sounds like a good guess.
I'd love to know more about the time calculation algorithm. If I'd written it, I'd probably have done something simple, like:
1. During the initial setup, sort all the stations by time, and pick the strongest of the middle three or four as the default to use as a reference.
2. Give the user an option to choose another station for a time reference, in case the one picked during setup was a poor choice.
3. On an "advanced" setup page, give the user an option to enter a +/- offset from the chosen station's time.
But my guess as to what it's actually doing is more complex:
1. During the initial setup, calculate the median time.
2. Assign each station a weight based on factors such as signal strength, difference between station's time and median time, etc. Weak stations or outliers would likely receive a weight near zero.
3. Calculate a weighted average of the stations' times. Repeat during each overnight scan for new stations.
4. If the user corrects the time manually, calculate an offset, and apply that offset to the time from (3) thereafter.
The x2203 or x4404 flags may indicate things like whether the station was received during the previous night's scan, and whether the station has been deleted.