Jump to content


Photo

Current time is wrong by 10 minutes


  • Please log in to reply
29 replies to this topic

#1 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 30 December 2016 - 13:31

Hi guys,

 

The current time shown on my Vu+Duo2 is off by ten minutes. I am not sure why / when this started happening. Rebooting the box doesn't help.

 

I tried to change it manually:

root@vu:~# date
Fri Dec 30 13:38:09 CET 2016
root@vu:~# date -s '2016-12-30 13:28:10'
Fri Dec 30 13:28:10 CET 2016

But no luck:

root@vu:~# date
Fri Dec 30 13:38:11 CET 2016

Any ideas what's causing this? Is there any other way I can change the current time?

 

Thanks,



Re: Current time is wrong by 10 minutes #2 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 30 December 2016 - 13:57

Change the "startup" service to a service that gives the correct time (transponder).


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Current time is wrong by 10 minutes #3 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 30 December 2016 - 17:21

Hi Erik,

 

Thanks for the suggestion. I have now tried on several services, from different satellites and even from terrestrial, but I'm still running into the same issue.

 

Also the time provided by the TDT on my startup service looks alright:

root@vu:~# date
Fri Dec 30 17:21:34 CET 2016

root@vu:~# dvbsnoop -frontend /dev/dvb/adapter0/frontend0 -dvr /dev/dvb/adapter0/dvr0 -demux /dev/dvb/adapter0/demux0 -n 3 -nph 0x14
dvbsnoop V1.4.51 -- https://github.com/persianpros/dvbsnoop 

------------------------------------------------------------
SECT-Packet: 00000001   PID: 20 (0x0014), Length: 8 (0x0008)
Time received: Fri 2016-12-30  17:21:24.913
------------------------------------------------------------
PID:  20 (0x0014)  [= assigned for: DVB Time and Date Table (TDT), Time Offset Table (TOT)]

Guess table from table id...
TDT-decoding....
Table_ID: 112 (0x70)  [= Time Date Table (TDT)]
section_syntax_indicator: 0 (0x00)
reserved_1: 1 (0x01)
reserved_2: 3 (0x03)
Section_length: 5 (0x0005)
UTC_time: 0xe198161129 [= 2016-12-30 16:11:29 (UTC)]
==========================================================


Re: Current time is wrong by 10 minutes #4 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 31 December 2016 - 18:12

Change the startup service and then reboot, from the user interface.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Current time is wrong by 10 minutes #5 Pr2

  • PLi® Contributor
  • 6,046 posts

+256
Excellent

Posted 31 December 2016 - 22:25

Reflash your box.


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Current time is wrong by 10 minutes #6 DeBeek

  • Senior Member
  • 1,490 posts

+47
Good

Posted 1 January 2017 - 11:56

Set to correct service, Shutdown your receiver,  switch off powerswitch on back, press and hold power button on front voor 5 sec,

release power button and switch on with power switch on back..


Vu+DUO4K, (DVB-C FBC & DVB-S2X FBC twin tuner), OpenPLi Nightly Build, My-FullNightHD skin, Bluetooth remote,

2x Synology DS-116, 16 Gb USB3, Autotimer, Bitrate, EPG-Import, Ziggo Kabel-tv, Astra 28.2.


Re: Current time is wrong by 10 minutes #7 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 1 January 2017 - 13:34

Change the startup service and then reboot, from the user interface.

 

Yes, this is what I did.



Re: Current time is wrong by 10 minutes #8 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 1 January 2017 - 13:35

Set to correct service, Shutdown your receiver,  switch off powerswitch on back, press and hold power button on front voor 5 sec,

release power button and switch on with power switch on back..

 

It worked! Perfect! Thank you!

 

Just curious: what did this procedure actually do and how did you know?



Re: Current time is wrong by 10 minutes #9 DeBeek

  • Senior Member
  • 1,490 posts

+47
Good

Posted 1 January 2017 - 13:53

on my Dreambox 8000 it works the same way, when you do a reboot, standby power stays on, so the clock continues to run.

 

With a complete power down clock goes to zero en has to read the new transponder time when booting up..


Edited by DeBeek, 1 January 2017 - 13:54.

Vu+DUO4K, (DVB-C FBC & DVB-S2X FBC twin tuner), OpenPLi Nightly Build, My-FullNightHD skin, Bluetooth remote,

2x Synology DS-116, 16 Gb USB3, Autotimer, Bitrate, EPG-Import, Ziggo Kabel-tv, Astra 28.2.


Re: Current time is wrong by 10 minutes #10 Tech

  • Forum Moderator
    PLi® Core member
  • 14,597 posts

+458
Excellent

Posted 1 January 2017 - 14:57

If you powerdown the receiver, a little bit power remains in the powersupply, by pressing the powerbutton after pulling the plug, the last bit of power wich is left in capacitors, will be used and will stop the internal clock in the frontpanel.

Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

 

On the edge of the abyss, a step forward is not always progress....


Re: Current time is wrong by 10 minutes #11 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 1 January 2017 - 18:29

Thanks guys, good to know! :)



Re: Current time is wrong by 10 minutes #12 Martin_B

  • Senior Member
  • 115 posts

0
Neutral

Posted 1 January 2017 - 19:18

If I'd do so, a programmed timer wouldn't work afterwards?

Edited by Martin_B, 1 January 2017 - 19:21.


Re: Current time is wrong by 10 minutes #13 WanWizard

  • PLi® Core member
  • 68,303 posts

+1,718
Excellent

Posted 1 January 2017 - 22:39

What do you mean with a "programmed timer"?

 

No STB has a real time clock, so if you put the box in deep standby, there is no running clock. The box does have a wakeup timer (as in "x seconds from now"), which is set before shutdown when there are recordings defined, to make sure the box wakes up just before a recording will start.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Current time is wrong by 10 minutes #14 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 2 January 2017 - 06:01

No STB has a real time clock, so if you put the box in deep standby, there is no running clock.

Yes, all VU's do have one. But in most images it's not being used as such.
But if it is being used, the STB has the correct time already when coming out of deep.
Needless to say that when there has been a powercut the clock has lost it's time.

To actually use the RTC the image needs to do something like
#!/bin/sh

if [ -f /proc/stb/fp/rtc ] ; then
    LIMIT_TIME=1388534400 #01.01.2014
    RTC_TIME=$( cat /proc/stb/fp/rtc )
    SYSTEM_TIME=$(date +%s)
    if [ "$RTC_TIME" -gt "$LIMIT_TIME" ]; then
        if [ "$SYSTEM_TIME" -lt "$LIMIT_TIME" ]; then
            date -s @$RTC_TIME
            echo "set rtc time ..."
        fi
    fi
fi
This doesn't change the fact that the wake-up timer is just a ticker.

Edited by Rob van der Does, 2 January 2017 - 06:02.


Re: Current time is wrong by 10 minutes #15 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 2 January 2017 - 09:31

Are you sure the RTC on VU+ is not just an emulation, i.e. store the RTC of the kernel in NVR before deep standby and after wake, load it with the value offset by the ticker?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Current time is wrong by 10 minutes #16 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 2 January 2017 - 09:43

Yes, I am; it clearly shows to be working when you use it in:
1- the RS232 boot-log, and
2- the correct time being set after waking from deep even if no satellite or internet connection is available.

Re: Current time is wrong by 10 minutes #17 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 2 January 2017 - 09:47

The same result could still be achieved using the "emulation" technique I explained. The only way to know is to cut the power for a prolonged time. Even then the RTC emulator could be battery backed up. But OTOH in that case it would start to resemble a real RTC very closely, anyway.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Current time is wrong by 10 minutes #18 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 2 January 2017 - 10:00

No: as I said before: on a powercut the clock looses time.

And on the subsequent restart you see in the RS232 log the 1970 date again, and the GUI has no time either (when no satellite & internet is available to the box).

I know for sure that no Xtrend supports this RTC, but maybe some others do.



Re: Current time is wrong by 10 minutes #19 Martin_B

  • Senior Member
  • 115 posts

0
Neutral

Posted 2 January 2017 - 10:28

Thanks for the explanation!

I was just curious how it works.



Re: Current time is wrong by 10 minutes #20 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 2 January 2017 - 10:35

So, none of them (either VU+ or other manufacturers) feature a RTC.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users