Jump to content


Photo

Unicable / simultaneous recordings


  • Please log in to reply
342 replies to this topic

Re: Unicable / simultaneous recordings #121 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 4 October 2018 - 09:35

FYI: https://code.mythtv....icket/12092#no1
 

This is PoC patch for potential issue related to fact that UniCable bus is shared type bus. For reliable operation, shared bus requires access coordination or collision detection. Patch implements access coordination. From functional point of view patch should avoid situations where 2 or more recorders/EIT scanners are issuing tuning command in EXACTLY the same time. Even as tuner's Disecq HW will serialize commands - Unicable protocol requires defined guard silence between tuning command sets. For reference: in my system (4 unicable tuners, 350-500 recordings per week) I catch 1 such case during 5 months period.


As you can see, other DVB projects also had same issue.

So the 1sec delay was not a bad idea at all, but still a temporary solution.

When tuners are using unicable/Jess, we can detect it from linked frontends, right?

 

If you read the complete document, you can see when they talk of "collision detection" they mean the use of multiple tuners (as in: multiple set-top-boxes) on a single cable. A single STB has a single enigma2 instance and a single driver instance and therefore there are no collisions.


* 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 #122 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 4 October 2018 - 09:36

Thanks for the info.

 

We have tested with a couple of switches too and results were the same as with the LNBs. Without the patch in RecordTimer.py the recordings were also zero length.

 

Test machine:

Gigablue Quad 4K.

 

Switches:

DUR-Line DCR 5-1-8-L4

Spaun SUS 5581/33 NFA

Maybe it's a bug in the GB's drivers?


* 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 #123 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 4 October 2018 - 09:39

So as far as I read it the delay between retries should be random so there is no chance of collision happening more than once.

Enigma already does that, as long as no LOCK is achieved, it keeps tuning. Every tunning attempt results into a SCR command being sent. There is no need (or preference) to repeat this functionality at the physical layer. You can see that it works by power cycling a multiswitch. The tuner looses lock and then re-gains it after a few seconds, because enigma sends the commands 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 #124 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 4 October 2018 - 09:44

 

Agreed, up to 1s but what is the minimum? 250ms, 75ms ?

I think a reasonable minimum for "guard silence" between commands would be 100ms.

I think that's our goal, like I said before. There is already a set of SEC delays and one of them should be the inter-command-delay. Set that to any value you want and you've achieved your goal. I don't think this needs any code change at all, rather not, really.


* 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 #125 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 4 October 2018 - 09:49

Looks good to me.
What others are saying for the C++ patch?
@pieterg, @erik, @betacentauri, @littlesat review final patch (with rand delay 100-999 ms).

I would only agree if it:

 

- does not introduce regressions (having additional delays in an environment where it's not required, is unacceptable)

- does not duplicate functionality (enigma already retries tuning when not successful)

 

So imho the only acceptable implementation is to add a SEC delay parameter "max inter command delay" and then use the already existing "inter command delay" as a minimum, and vary the actual used value between min and max randomly. Or better, use an exponentional backoff algorithm like may broadcast mediums use, where the first retry is immediate and after that an ever increasing delay is inserted between attempts. It has been proved since many years that's the best approach.


* 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 #126 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 4 October 2018 - 11:22

 

Thanks for the info.

 

We have tested with a couple of switches too and results were the same as with the LNBs. Without the patch in RecordTimer.py the recordings were also zero length.

 

Test machine:

Gigablue Quad 4K.

 

Switches:

DUR-Line DCR 5-1-8-L4

Spaun SUS 5581/33 NFA

Maybe it's a bug in the GB's drivers?

 

The bug is not brand specific. It also shows on Ultimo 4K and Solo 4K.



Re: Unicable / simultaneous recordings #127 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 4 October 2018 - 12:10

For Abu the test failed several times. This is the code he tested: https://github.com/H...0cc1b776a02f308

 

For me this worked fine.

 

Both of us using Solo 4K in this test. Abu also tested on GB UE 4K. Also failed. Only difference in the current tests is I am using an Inverto LNB and he is using a GT-Sat.



Re: Unicable / simultaneous recordings #128 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 4 October 2018 - 18:22

Yes, I already read that after I posted this. So it's not STB brand specific. Apparently it IS LNB/switch specific. And that's why I don't want a "generic" workaround, for me (and probably some others too) it now works and I'd very much like to keep it that way. A workaround is never allowed when it breaks the stuff that already worked.


* 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 #129 twol

  • Senior Member
  • 448 posts

+15
Neutral

Posted 4 October 2018 - 19:06

I don‘t think anything has been broken, that wasn‘t already broken..... but some additional things now work...... and the code improvements should benefit everybody.

Gigablue Quad 4K & UE 4K, Vu+Uno4KSE, DM900
.........FBC Tuners:
------------------> GT-SAT unicable lnb to 1.5M dish(28.2E)
------------------> Gigablue unicable lnb to 80 cm dish(19.2E)

Octagon sf8008, AX HD61, Edision Osmio 4K+, Zgemma H9Combo using Legacy ports on multiswitches
Zgemma H9twin & Zgemma H9 C/S mode into Giga4K
 


Re: Unicable / simultaneous recordings #130 Abu Baniaz

  • PLi® Contributor
  • 2,500 posts

+64
Good

Posted 4 October 2018 - 21:09

Unicable LNBs are expensive. I have tried an Inverto as well as a GT-Sat LNB. Both have have the issue when using FBC tuners.

So far only Vu+ and GigaBlue have FBC tuners. They both fail for me.

I'd be grateful for any further suggestions/changes that can help make recordings reliable.

Sent from my Moto G (5S) using Forum Fiend v1.3.3.

Re: Unicable / simultaneous recordings #131 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 4 October 2018 - 22:31

Yes, I already read that after I posted this. So it's not STB brand specific. Apparently it IS LNB/switch specific. And that's why I don't want a "generic" workaround, for me (and probably some others too) it now works and I'd very much like to keep it that way. A workaround is never allowed when it breaks the stuff that already worked.

Just because some switches aren't vulnerable to this bug doesn't mean the ones that are, are faulty. Too many devices affected and the one thing they have in common is running enigma2.



Re: Unicable / simultaneous recordings #132 Dimitrij

  • PLi® Core member
  • 10,328 posts

+350
Excellent

Posted 5 October 2018 - 05:37

So far only Vu+ and GigaBlue have FBC tuners.

Lunix3-4K  two FBC tuners same as in Ultimo 4K


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Unicable / simultaneous recordings #133 Pr2

  • PLi® Contributor
  • 6,181 posts

+261
Excellent

Posted 5 October 2018 - 06:56

For me this should be escalated to the driver manufacturer and they should fix it at the driver level (too). Because from what I read here it is supposed to work as ethernet (CSMA-CD) and this should be done at the driver level, since higher you cannot detect collisions.


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

  • PLi® Core member
  • 57,177 posts

+698
Excellent

Posted 5 October 2018 - 07:26

As far I know it is a one way communication without feedback from the lnb. The only feedback is that it can be tuned or not. Will the ‘diseqc’ type commands from unicable/jess be repeated at a retune?

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


Re: Unicable / simultaneous recordings #135 Huevos

  • PLi® Contributor
  • 4,663 posts

+163
Excellent

Posted 5 October 2018 - 08:00

As far I know it is a one way communication without feedback from the lnb. The only feedback is that it can be tuned or not. Will the ‘diseqc’ type commands from unicable/jess be repeated at a retune?

Yes commands are repeated. If receiver loses lock, for example the control word is sent again.

 

If you remove the PSU from the switch tune fails. Reinsert the PSU and the picture reappears. That proves the control word is resent.

 

@PR2, this is not just FBC. Rob has confirmed twice in this thread that other tuner types are affected.



Re: Unicable / simultaneous recordings #136 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 5 October 2018 - 08:25

 

Yes, I already read that after I posted this. So it's not STB brand specific. Apparently it IS LNB/switch specific. And that's why I don't want a "generic" workaround, for me (and probably some others too) it now works and I'd very much like to keep it that way. A workaround is never allowed when it breaks the stuff that already worked.

Just because some switches aren't vulnerable to this bug doesn't mean the ones that are, are faulty. Too many devices affected and the one thing they have in common is running enigma2.

My rationale is: the standard doesn't require delays and some of the SCR switches prove this point. I am not against making non-standard adhering stuff work, but never at the expense of devices that already work without the workaround. So extra delays: fine, but only when explicitly requested or, if possible, auto-detected from the connected devices.

 

I still think the standard SEC delays should be tried first.


* 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 #137 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 5 October 2018 - 08:28

 

So far only Vu+ and GigaBlue have FBC tuners.

Lunix3-4K  two FBC tuners same as in Ultimo 4K

Same hardware, but not same drivers, of course.

 

The Ultimo4k has 1x FBC + 1x FBC + 1x standard.

Lunix3-4k has 1x FBC + 1x standard.

 

You've been fooled by the "dual" mentioning, as many people do.


* 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 #138 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 5 October 2018 - 08:39

For me this should be escalated to the driver manufacturer and they should fix it at the driver level (too). Because from what I read here it is supposed to work as ethernet (CSMA-CD) and this should be done at the driver level, since higher you cannot detect collisions.

No it's not (completely) supposed to work like this. Ethernet has always a at least one layer above it for error detection and correction. The collision detection is only there to prevent a situation where packets get sent over and over again unnecessarily.

 

DiSEqC has, for each version, a counterpart that enables two-way communication (e.g. 2.0 from 1.0, 2.1 from 1.1 etc.). Most devices do actually implement the two-way communication, but enigma2 doesn't use it at all. I am afraid it's a vicious circle; DMM never bothered to implement it's functionality in enigma2, so other vendors didn't bother to add this functionality (probably...) in their drivers. May be the hardware isn't even capable.

 

Anyway, SCR is not the same as DiSeqC, it only uses most of it's signalling. The good news is that at least JESS (but probably Unicable as well) support inherently two-way communication, but in a different way than DiSEqC. AFAIK there is a command to query the currently assigned user bands, so I guess that's what one should use to check communications. But here also counts the same as for DiSEqC, probably the drivers or even hardware don't support actually reading DiSEqC. Even if only vendor doesn't support it, there would be a problem.

 

So enigma defaults to the "second best practice", where one sends the command, checks for LOCK and if it doesn't come, try again a few times until time out. It's not beautiful but it is very robust. As said the retransmission of the SEC commands take place a higher level than the SCR handling, so we shouldn't be modifiying code there (SCR). If not already there, I think we should modify the retry pattern into an exponentional backoff one, as described earlier. We could add to the pattern a random fragment, which would make the pattern even more efficient.


* 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 #139 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 5 October 2018 - 08:40

 

As far I know it is a one way communication without feedback from the lnb. The only feedback is that it can be tuned or not. Will the ‘diseqc’ type commands from unicable/jess be repeated at a retune?

Yes commands are repeated. If receiver loses lock, for example the control word is sent again.

 

If you remove the PSU from the switch tune fails. Reinsert the PSU and the picture reappears. That proves the control word is resent.

Just like I said a few posts back ;) The communication is indeed via the LOCK status.

 

That's why the SCR and SEC code don't send their commands directly, but build a queue, which enigma attaches to the currently service (and then sends itself, whenever tuning is required). And that's why delays in the SCR/SEC code won't work.


Edited by Erik Slagter, 5 October 2018 - 08:42.

* 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 #140 Dimitrij

  • PLi® Core member
  • 10,328 posts

+350
Excellent

Posted 5 October 2018 - 08:54


Lunix3-4k has 2x FBC + 1x DVB-S or multi DVB-C/DVB-T2 .


Edited by Dimitrij, 5 October 2018 - 08:58.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K



8 user(s) are reading this topic

0 members, 8 guests, 0 anonymous users