Jump to content


Photo

Receiver no longer time synced


  • Please log in to reply
173 replies to this topic

Re: Receiver no longer time synced #101 littlesat

  • PLi® Core member
  • 57,431 posts

+708
Excellent

Posted 29 December 2017 - 11:53


ntp will not adjust the clock immediately but it will gradually adjust it, over a large timespan.

Where can I find this information as here it directly adjust it?


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Receiver no longer time synced #102 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 29 December 2017 - 12:00

It depends on how much the time is off.


* 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: Receiver no longer time synced #103 WanWizard

  • PLi® Core member
  • 70,845 posts

+1,832
Excellent

Posted 29 December 2017 - 13:20

Exactly. 

 

If it is really off, even the "date" command on the commandline doesn't work, so no point looking into ntp tools, as that is not looking at the root cause.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: Receiver no longer time synced #104 Pr2

  • PLi® Contributor
  • 6,194 posts

+261
Excellent

Posted 29 December 2017 - 14:17

Very strange your conclusion, power off a STB with no clock at all ( I think the Zgemma H5 for example) then start it up.

It will have a very old date and time then issue an NTP and the date and time will be set properly.


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: Receiver no longer time synced #105 WanWizard

  • PLi® Core member
  • 70,845 posts

+1,832
Excellent

Posted 29 December 2017 - 14:34

What are you referring to?

 

I don't think anyone has said you can't set the time after a cold boot, on the contrary, that is the only time you CAN set it.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: Receiver no longer time synced #106 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 29 December 2017 - 15:06

...
You could get an I2C RTC chip, with integrated battery, and connect it to any I2C inside the box (tuner slot?). That'd be more cost effective, but not very generic...

That would cost you about $ 0.20 but it has a few drawbacks:
- most of them are SOIC or smaller


Yep, that's the only real problem. You could get a chinese PCB manufacturer to create some kind of break-out board for a few cents.

- how are you going to adress them from user space, if the driver do not share the bus with user space (kernel i2c subsystem)


User space I2C is not needed (and should be avoided anyway), there are perfectly fine drivers for most I2C clock chips. This also means the kernel will fetch the time from the RTC as soon as it is available, usually before userspace starts.

- possible address conflicts with tuners or other native hardware


Just look at /sys/bus/i2c/ and see what's in use. Chances of conflict are very small, and usually you can set the last address bits by pin strapping. And there are multiple I2C buses available, which also helps avoiding conflicts.
And RTC chips do not use any bandwidth at all, so you can share them with anything.
Real musicians never die - they just decompose

Re: Receiver no longer time synced #107 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 29 December 2017 - 15:08

But that's all very theoretical. A simple GUI entry (e.g. near the timezone selection) to reset the time to the currently tuned transponder time would be a more productive approach I think.
Real musicians never die - they just decompose

Re: Receiver no longer time synced #108 WanWizard

  • PLi® Core member
  • 70,845 posts

+1,832
Excellent

Posted 29 December 2017 - 15:09

Functionality that Dimitrij has already built into the systemtime plugin.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: Receiver no longer time synced #109 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 29 December 2017 - 19:17

Just look at /sys/bus/i2c/ and see what's in use. Chances of conflict are very small, and usually you can set the last address bits by pin strapping. And there are multiple I2C buses available, which also helps avoiding conflicts.
And RTC chips do not use any bandwidth at all, so you can share them with anything.

You are assuming here that the internal i2c buses are exported to the kernel and user space. I very much doubt that. A driver developer has no interest in making the i2c bus available to user space.

 

Address conflicts are more likely than you'd think, because large ranges of the just 7 bits of addresses are reserved. And would you know which addresses are used by tuners and other internal hardware?


* 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: Receiver no longer time synced #110 mrvica

  • Senior Member
  • 1,271 posts

+87
Good

Posted 29 December 2017 - 20:42

for Raspberry PI there are RTC´s around, means the software can be used straight away on an armhf box, we just need someone to do the beta testing
https://thepihut.com...ur-raspberry-pi
https://raspberry.ti...t-raspberry-pi/

Re: Receiver no longer time synced #111 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 29 December 2017 - 20:55

If "init 4" doesn't work, than means it is not code in Enigma that refuses the clock change. Interesting...

 

If you use a clockfix enabled oscam binary the cause is 100% oscam.

if at startup your time is "not set" the clockfixed oscam will wait and once NTP or a transponder has set the time to something that is younger than oscam build time oscam will maintain the time.

 

Some transponders are consciously tinkering with the timesignal to frustrate cardsharing but as usual watching legitimately with a card in reader of your opensource box is affected too.

 

To "fix" the time:

 

Kill oscam, fix your time and start it again.

 

Or just use whatever you want to fix your time correctly and use a non clockfix enabled oscam binary but dont complain about non working ratelimiters, black picture, bad cw cache, disconnected clients and more reported issues I already have forgotten about.

 

Yes there were several attempts in the past to start using CLOCK_MONOTONIC but they all failed.

I guess lack of good coders willing to work for free on the oscam project...


Edited by theparasol, 29 December 2017 - 20:58.

@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Receiver no longer time synced #112 WanWizard

  • PLi® Core member
  • 70,845 posts

+1,832
Excellent

Posted 29 December 2017 - 21:14

Ah. Now that is something new, and I have to say highly unexpected.

 

Is there a config value to disable this behaviour? This needs to be addressed and fixed at the linux level, not in any user binary (and that includes Enigma).


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: Receiver no longer time synced #113 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 29 December 2017 - 21:40

Is there a config value to disable this behaviour? This needs to be addressed and fixed at the linux level, not in any user binary (and that includes Enigma).

 

http://www.streamboa...trunk/config.sh

 

default: CONFIG_CLOCKFIX=y

 

All oscam builds with clockfix have "Clockfix with realtime clock: yes" (you can check in webif -> files -> oscam-version)

 

To have it removed: this can only be done at compiletime... so before compiling the oscam bin flip it to CONFIG_CLOCKFIX=n

 

Is it a unusual and dirty thing: yes, I agree but hey it works and fixes things (even on my setup hence the default on)

If anyone can improve the oscam code the right way just do it. But be warned you will enter a fucing rabbithole.

 

BTW I'm more than happy to commit a sound and clean solution to fix this properly in oscam but only problem is it needs to be made first...

Till then the second best option is in effect and all complains are ignored.

 

Ignore mode on again... ;)


Edited by theparasol, 29 December 2017 - 21:41.

@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Receiver no longer time synced #114 WanWizard

  • PLi® Core member
  • 70,845 posts

+1,832
Excellent

Posted 29 December 2017 - 22:08

Ok, so it's a compile time switch... Hmm...

 

My point is that this shouldn't be in Oscam at all. Linux should make sure the time is correct for all userspace apps, those apps should not interfere with stuff the OS is tasked to do.

 

So it should not be altered, it should be removed.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: Receiver no longer time synced #115 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 29 December 2017 - 22:34

Why OpenPli not make it configurable in the BSP layer? So every manufacturer that integrated a correctly ticking RTC should be able to remove all timefixes in the image by some kill switch.

That way we can close another neverending story now (and in the future) and we can all blame the manufacturers instead and use our precious spare time to improve the working of the image itself.


@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Receiver no longer time synced #116 WanWizard

  • PLi® Core member
  • 70,845 posts

+1,832
Excellent

Posted 29 December 2017 - 22:37

Can don't have write access to the BSP's, so we can't make any changes. And I doubt manufacturers want to get involved with Oscam... ;)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: Receiver no longer time synced #117 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 29 December 2017 - 22:59

Read carefully:

 

Remove all time hacks in enigma. In a specific feed for that model receiver you can deliver a clockfix disabled oscam.

Or not, thats up to the OpenPli team. I dont care.

 

If you wish you all may even blame my notorious bad coding skills: I can live with that ;)


@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Receiver no longer time synced #118 WanWizard

  • PLi® Core member
  • 70,845 posts

+1,832
Excellent

Posted 29 December 2017 - 23:08

If it is up to me, we remove all hacks, everyone of them. We don't need hacks, we need proper solutions (which I know is not easy, hence this thread).

 

I don't see why there should be any blame involved. The last time I wrote a C program was over 30 years ago, I'm not saying anything about coding skills. ;)

 

I'm only saying a solution for an invalid clock should not be implemented in CCcam. Or in Enigma.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (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: Receiver no longer time synced #119 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 29 December 2017 - 23:25

I'm only saying a solution for an invalid clock should not be implemented in CCcam. Or in Enigma.

 

Yes, the "just saying" phrase: So better discuss it within the OpenPli team. Compile oscam the way the team members wants to have it.


@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Receiver no longer time synced #120 Abu Baniaz

  • PLi® Contributor
  • 2,522 posts

+64
Good

Posted 30 December 2017 - 01:49

Is it possible to apply the 120 second restriction only if time sync is set to use transponder time?




10 user(s) are reading this topic

0 members, 10 guests, 0 anonymous users