Jump to content


Photo

Unicable / simultaneous recordings


  • Please log in to reply
342 replies to this topic

Re: Unicable / simultaneous recordings #161 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 6 October 2018 - 14:12


This one doesn't seem right. Most probably the tuning is the new try and tune failed is the old event, that happens to processed after the new tune stated.

<  1349.154> [eDVBChannel] OURSTATE: tuning
<  1349.154> [eDVBServicePMTHandler] tune failed.
So, maybe the tune failed event, changes something that makes new tune to choose a code path that never completes tune?
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Unicable / simultaneous recordings #162 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 6 October 2018 - 17:44

This one doesn't seem right. Most probably the tuning is the new try and tune failed is the old event, that happens to processed after the new tune stated.
 

<  1349.154> [eDVBChannel] OURSTATE: tuning
<  1349.154> [eDVBServicePMTHandler] tune failed.
So, maybe the tune failed event, changes something that makes new tune to choose a code path that never completes tune?

 

Sounds about right, because enigma is trying over and over in that log. So if this is the case it would definitely be a bug in enigma. And as soon as you cancel one recording the other recording goes from being zero length to actively recording.



Re: Unicable / simultaneous recordings #163 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 6 October 2018 - 17:47

And I'll tell you something else that I said further back in the thread. I checked with my analyser and the SCRs are active and tuned to the correct transponders.

 

I can retest this if necessary.


Edited by Huevos, 6 October 2018 - 17:47.


Re: Unicable / simultaneous recordings #164 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 6 October 2018 - 18:14

So IMO something internal in the code believes the LNB is not tuned when in fact it is.



Re: Unicable / simultaneous recordings #165 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 6 October 2018 - 18:21

There is a bug somewhere for sure! So we need to look in the right direction, the retune is there, but most probably a racing in re-tune code, makes it unusable then multiple re-tunes occur together.

Look on the "< 1349.154> [eDVBServicePMTHandler] tune failed.", you will find out that in lib/dvb/pmt.cpp is shown when state == iDVBChannel::state_failed.

Why do we need m_last_channel_state variable in lib/dvb/pmt.cpp?

Is there somewhere a code in enigma2 that changes m_last_channel_state to a value different than -1?

(PS. Of course that variable is not the problem, but it's part of the problem, since it's shown on the path).

Edited by athoik, 6 October 2018 - 18:21.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Unicable / simultaneous recordings #166 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 6 October 2018 - 19:39

There is a bug somewhere for sure! So we need to look in the right direction, the retune is there, but most probably a racing in re-tune code, makes it unusable then multiple re-tunes occur together.

Look on the "< 1349.154> [eDVBServicePMTHandler] tune failed.", you will find out that in lib/dvb/pmt.cpp is shown when state == iDVBChannel::state_failed.

Why do we need m_last_channel_state variable in lib/dvb/pmt.cpp?

Is there somewhere a code in enigma2 that changes m_last_channel_state to a value different than -1?

(PS. Of course that variable is not the problem, but it's part of the problem, since it's shown on the path).

I can't see one. That variable only exists in pmt.h and pmt.cpp. And only place that writes to it in line #883 in pmt.cpp.

 

If you want to build and output any debug let me know.



Re: Unicable / simultaneous recordings #167 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 7 October 2018 - 08:25

I have got the diseqc delays plugin. None of the delays are relevant to unicable.

Can you list them? Maybe some of the names are misleading in this regard.


* 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: Unicable / simultaneous recordings #168 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 7 October 2018 - 08:30

Above you can see two tuners trying to tune, the tuner 0-A succeeds with status 1f, the tuner 1-B fails with status 7.
Then tuner B, tries several times, and it never tunes. It always fails with last status reported from tuner 7.
So the real question here is: Why tuner never got LOCK? Why re-tune failed?

In case you wonder what 7 or 1f is:
7 = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_VITERBI
1f = FE_HAS_LOCK | FE_HAS_SYNC | FE_HAS_VITERBI | FE_HAS_CARRIER | FE_HAS_SIGNAL

That is plain weird. It suggests a signal is seen but can't be locked to. OTOH it suggests the '7' options are simply always on, because the tuner can't detect them (or the driver doesn't export this information).

 

And like you said, the first try failing can be explained, the next not. Unless not only the first tuner but all tuners are retried, then you get the same collision over and over again.


* 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: Unicable / simultaneous recordings #169 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 7 October 2018 - 08:31

Sounds about right, because enigma is trying over and over in that log. So if this is the case it would definitely be a bug in enigma. And as soon as you cancel one recording the other recording goes from being zero length to actively recording.

I am also getting this feeling...

* 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: Unicable / simultaneous recordings #170 littlesat

  • PLi® Core member
  • 57,177 posts

+698
Excellent

Posted 7 October 2018 - 09:22

Thinking about e2 retunes... maybe there could also be something driver related or the driver gives incorrect values. What if when we retune do ignore an error?

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


Re: Unicable / simultaneous recordings #171 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 7 October 2018 - 09:33

 

I have got the diseqc delays plugin. None of the delays are relevant to unicable.

Can you list them? Maybe some of the names are misleading in this regard.

 

def InitSecParams():
	config.sec = ConfigSubsection()
	config.sec.delay_after_continuous_tone_disable_before_diseqc = ConfigInteger(default=25, limits = (0, 9999))
	config.sec.delay_after_final_continuous_tone_change = ConfigInteger(default=10, limits = (0, 9999))
	config.sec.delay_after_final_voltage_change = ConfigInteger(default=10, limits = (0, 9999))
	config.sec.delay_between_diseqc_repeats = ConfigInteger(default=120, limits = (0, 9999))
	config.sec.delay_after_last_diseqc_command = ConfigInteger(default=100, limits = (0, 9999))
	config.sec.delay_after_toneburst = ConfigInteger(default=50, limits = (0, 9999))
	config.sec.delay_after_change_voltage_before_switch_command = ConfigInteger(default=75, limits = (0, 9999))
	config.sec.delay_after_enable_voltage_before_switch_command = ConfigInteger(default=200, limits = (0, 9999))
	config.sec.delay_between_switch_and_motor_command = ConfigInteger(default=700, limits = (0, 9999))
	config.sec.delay_after_voltage_change_before_measure_idle_inputpower = ConfigInteger(default=500, limits = (0, 9999))
	config.sec.delay_after_enable_voltage_before_motor_command = ConfigInteger(default=900, limits = (0, 9999))
	config.sec.delay_after_motor_stop_command = ConfigInteger(default=500, limits = (0, 9999))
	config.sec.delay_after_voltage_change_before_motor_command = ConfigInteger(default=500, limits = (0, 9999))
	config.sec.delay_before_sequence_repeat = ConfigInteger(default=70, limits = (0, 9999))
	config.sec.motor_running_timeout = ConfigInteger(default=360, limits = (0, 9999))
	config.sec.motor_command_retries = ConfigInteger(default=1, limits = (0, 5))
	config.sec.delay_after_diseqc_reset_cmd = ConfigInteger(default=50, limits = (0, 9999))
	config.sec.delay_after_diseqc_peripherial_poweron_cmd = ConfigInteger(default=150, limits = (0, 9999))

From NimManager. These are what the plugin provides access to.

 

config.sec.delay_after_enable_voltage_before_motor_command let's us set sufficient time for the LNB to boot from cold where the LNB/switch is not using a power inserter or PSU.


Edited by Huevos, 7 October 2018 - 09:35.


Re: Unicable / simultaneous recordings #172 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 7 October 2018 - 10:06

Ok. Solo4K. First observation is this STB supplies voltage to the LNB 24/7. The LNB is powered before enigma starts to boot. When the box is in standby the LNB is also powered. Only time power stops is on a reboot. But power returns before enigma boots.



Re: Unicable / simultaneous recordings #173 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 7 October 2018 - 11:59

And I'll tell you something else that I said further back in the thread. I checked with my analyser and the SCRs are active and tuned to the correct transponders.

 

I can retest this if necessary.

Ok, have rechecked this and it is wrong. Whatever is being sent to the LNB is not tuning it. I can see the occasional blink on the spectrum display but nothing more.



Re: Unicable / simultaneous recordings #174 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 7 October 2018 - 12:02

Then after 4 minutes of retries 1 of the SCrs  has become active and 1 recording has started to gain length.

 

The other 2 SCRs are not visible on the spectrum and those recordings continue at zero length.



Re: Unicable / simultaneous recordings #175 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 7 October 2018 - 12:06

Ok, now I am 10 minutes into the recording and the other 2 SCRs have appeared on the display and all 3 recordings are increasing in length.



Re: Unicable / simultaneous recordings #176 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 7 October 2018 - 12:07

Thinking about e2 retunes... maybe there could also be something driver related or the driver gives incorrect values. What if when we retune do ignore an error?

We see this issue on more then one vendor's receiver.


* 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: Unicable / simultaneous recordings #177 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 7 October 2018 - 12:09

So the test was record 3 services. First recording started 4 minutes late. Other 2 started 10 minutes late.

 

Debug log just shows continual retries just as previous logs.



Re: Unicable / simultaneous recordings #178 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 7 October 2018 - 12:09

config.sec.delay_after_enable_voltage_before_motor_command let's us set sufficient time for the LNB to boot from cold where the LNB/switch is not using a power inserter or PSU.

I see several items that might help, even though their name doesn't directly suggests so.

 

Beware that "voltage" means "voltage change" here and not "power on".


* 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: Unicable / simultaneous recordings #179 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 7 October 2018 - 12:11

Thinking about e2 retunes... maybe there could also be something driver related or the driver gives incorrect values. What if when we retune do ignore an error?

You can't ignore the error. The LNB is not tuned.



Re: Unicable / simultaneous recordings #180 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 7 October 2018 - 12:13

 

And I'll tell you something else that I said further back in the thread. I checked with my analyser and the SCRs are active and tuned to the correct transponders.

 

I can retest this if necessary.

Ok, have rechecked this and it is wrong. Whatever is being sent to the LNB is not tuning it. I can see the occasional blink on the spectrum display but nothing more.

Maybe you saw the result of a previous tuning command (i.e. the user band was already tuned).

 

BTW please don't use "SCR" for user band. This misnomer is a result of the original code supplier (dvbadenin) that didn't really understand all of it and has remained in since then.

 

SCR = Single Cable Reception = Unicable or JESS (or any other similar system)

UB = User Band, the band, either frequency or index, a tuner has been allocated to use from the switch (which I think you're referring here to).


Edited by Erik Slagter, 7 October 2018 - 12:14.

* 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.



4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users