Jump to content


Photo

Multituner: First commits - but they need a lot of improvements


  • Please log in to reply
318 replies to this topic

Re: Multituner: First commits - but they need a lot of improvements #221 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 22 March 2019 - 19:59

#217 gives that:

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 26, in <module>
    from Screens import InfoBar
  File "/usr/lib/enigma2/python/Screens/InfoBar.py", line 5, in <module>
  File "/usr/lib/enigma2/python/Screens/MovieSelection.py", line 17, in <module>
  File "/usr/lib/enigma2/python/Components/UsageConfig.py", line 5, in <module>
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1631, in <module>
    nimmanager = NimManager()
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 896, in __init__
    InitNimManager(self)        #init config stuff
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1597, in InitNimManager
    createConfig(nim, slot)
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1573, in createConfig
    if len(nimmgr.getNimListOfType(slot.type, exception=slot_id)) > 0:
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 886, in getNimListOfType
    list = [x.slot for x in self.nim_slots if x.isCompatible(type) and x.slot != exception]
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 532, in isCompatible
    return self.isSupported() and bool([x for x in self.getTunerTypesEnabled() if what in self.compatible[x]])
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 529, in getTunerTypesEnabled
    self.config.configModeATSC.value and x.startswith("ATSC")] if self.hotswitchable else [self.getType()]
  File "/usr/lib/enigma2/python/Components/config.py", line 1676, in __getattr__
AttributeError: configModeDVBS


Edited by zeros, 22 March 2019 - 20:02.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Multituner: First commits - but they need a lot of improvements #222 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 22 March 2019 - 20:18

Just in case I tested #216 also and it gives actually the same Error (just in a little different form):

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 26, in <module>
    from Screens import InfoBar
  File "/usr/lib/enigma2/python/Screens/InfoBar.py", line 5, in <module>
  File "/usr/lib/enigma2/python/Screens/MovieSelection.py", line 17, in <module>
  File "/usr/lib/enigma2/python/Components/UsageConfig.py", line 5, in <module>
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1645, in <module>
    nimmanager = NimManager()
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 898, in __init__
    InitNimManager(self)        #init config stuff
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1610, in InitNimManager
    createConfig(nim, slot)
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1586, in createConfig
    if len(nimmgr.getNimListOfType(slot.type, exception=slot_id)) > 0:
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 888, in getNimListOfType
    list = [x.slot for x in self.nim_slots if x.isCompatible(type) and x.slot != exception]
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 532, in isCompatible
    return self.isSupported() and bool([x for x in self.getTunerTypesEnabled() if what in self.compatible[x]])
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 528, in getTunerTypesEnabled
    self.config.configModeATSC.value and x.startswith("ATSC")] if self.hotswitchable else [self.getType()]
  File "/usr/lib/enigma2/python/Components/config.py", line 1676, in __getattr__
AttributeError: configModeDVBS


DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Multituner: First commits - but they need a lot of improvements #223 littlesat

  • PLi® Core member
  • 56,280 posts

+691
Excellent

Posted 22 March 2019 - 20:24

Please hold on... I was capabel of trying here... in between I added a lot of fixes... work in progress... but the main thing is working here... the above I already solved and also Nice recursions for ever...scanning is also working now here. I only have Some anomalies while enabling/disabling dvb-s.
And in between I have to be carefull to focus on the need as I’m tempted to optimize too much at once...

Edited by littlesat, 22 March 2019 - 20:31.

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


Re: Multituner: First commits - but they need a lot of improvements #224 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 22 March 2019 - 20:42

I'm ready to test next version. But please add the Python files also (as you did in last time). So I can easily swap only these files without doing more than restart to box.


DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Multituner: First commits - but they need a lot of improvements #225 littlesat

  • PLi® Core member
  • 56,280 posts

+691
Excellent

Posted 22 March 2019 - 21:31

Just for you.... I hope we're almost there.... (the 4 files without diff)

Attached Files


Edited by littlesat, 22 March 2019 - 21:32.

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


Re: Multituner: First commits - but they need a lot of improvements #226 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 22 March 2019 - 21:45

For me this (this is the last line is already invalid :)  ):

nimmgr.sec = SecConfigure(n

I think, I will finish for today?

[eDVBResourceManager] found 1 adapter, 4 frontends(4 sim) and 17 demux
[eDVBLocalTimeHandler] Use valid Linux Time :) (RTC?)
[eEPGCache] Initialized EPGCache (wait for setCacheFile call now)
[MAIN] Loading spinners...
[MAIN] found 7 spinner!
[MAIN] executing main
[setIoPrio] best-effort level 3 ok
[eDVBFrontend] Failed to open /dev/dbox/fp0
[Misc_Options] 12Vdetect cannot open /proc/stb/misc/12V_output: No such file or directory
[HardwareInfo] Scanning hardware info
Detected: dm920
[Harddisk] enumerating block devices...
[Harddisk] new device sda -> /dev/sda -> /dev/sda
[Console] command: ('hdparm', 'hdparm', '-S0', '/dev/sda')
[eConsoleAppContainer] Starting hdparm
Activating keymap: Default (US)
[Console] command: loadkmap < /usr/share/keymaps/default.kmap
[eConsoleAppContainer] Starting /bin/sh
Activating language Eesti
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 26, in <module>
    from Screens import InfoBar
  File "/usr/lib/enigma2/python/Screens/InfoBar.py", line 5, in <module>
  File "/usr/lib/enigma2/python/Screens/MovieSelection.py", line 17, in <module>
  File "/usr/lib/enigma2/python/Components/UsageConfig.py", line 5, in <module>
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1633

                                ^
SyntaxError: invalid syntax


Edited by zeros, 22 March 2019 - 21:49.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Multituner: First commits - but they need a lot of improvements #227 littlesat

  • PLi® Core member
  • 56,280 posts

+691
Excellent

Posted 22 March 2019 - 21:51

For me also until tomorrow... wierd the last thing here was running and configurable.

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


Re: Multituner: First commits - but they need a lot of improvements #228 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 22 March 2019 - 21:55

But see the last line on NimManager.py

What you wanted to add there? It must be finished somehow (I have no ideas, as I don't know the code, but the line can't end so for sure...


Edited by zeros, 22 March 2019 - 21:56.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Multituner: First commits - but they need a lot of improvements #229 littlesat

  • PLi® Core member
  • 56,280 posts

+691
Excellent

Posted 22 March 2019 - 22:02

Could be a copy and past issue :( looks like a missing )?

Edited by littlesat, 22 March 2019 - 22:03.

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


Re: Multituner: First commits - but they need a lot of improvements #230 Huevos

  • PLi® Contributor
  • 4,249 posts

+158
Excellent

Posted 22 March 2019 - 22:05

In between I'm also a bit further ;)

 

I saw Huevos reverted the whole thing on VIX's develop. It seems he has an issue where the LNBs disappear out of the configs... I did not experienced that yet and was not able to verify it. It happened (in Vix?) after several reboots/restarts. Someone else experienced it..? 

Yes I reverted it in OpenViX "Dev" branch and moved it to a feature branch. In OpenViX "Dev" branch is more  or less equivalent to "RC" branch in PLi, so it becomes the next public stable image. Still building and testing on OS Mega, zgemmah7 and Ultimo 4K.



Re: Multituner: First commits - but they need a lot of improvements #231 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 22 March 2019 - 22:07

Now this and I will finish for today:

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/mytest.py", line 26, in <module>
    from Screens import InfoBar
  File "/usr/lib/enigma2/python/Screens/InfoBar.py", line 5, in <module>
  File "/usr/lib/enigma2/python/Screens/MovieSelection.py", line 17, in <module>
  File "/usr/lib/enigma2/python/Components/UsageConfig.py", line 5, in <module>
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1634, in <module>
    nimmanager = NimManager()
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 896, in __init__
    InitNimManager(self)        #init config stuff
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1600, in InitNimManager
    createConfig(nim, slot)
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 1576, in createConfig
    if len(nimmgr.getNimListOfType(slot.type, exception=slot_id)) > 0:
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 886, in getNimListOfType
    list = [x.slot for x in self.nim_slots if x.isCompatible(type) and x.slot != exception]
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 532, in isCompatible
    return self.isSupported() and bool([x for x in self.getTunerTypesEnabled() if what in self.compatible[x]])
  File "/usr/lib/enigma2/python/Components/NimManager.py", line 529, in getTunerTypesEnabled
    self.config.configModeATSC.value and x.startswith("ATSC")] if self.hotswitchable else [self.getType()]
  File "/usr/lib/enigma2/python/Components/config.py", line 1676, in __getattr__
AttributeError: configModeDVBS


DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Multituner: First commits - but they need a lot of improvements #232 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 22 March 2019 - 22:09

Just what I did, I added there like it was in previous file:

	nimmgr.sec = SecConfigure(nimmgr)

nimmanager = NimManager()

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Multituner: First commits - but they need a lot of improvements #233 Huevos

  • PLi® Contributor
  • 4,249 posts

+158
Excellent

Posted 22 March 2019 - 22:22

Also, please can we stick to diff files. Working with .py files is a nightmare... Or please provide the diff file too.



Re: Multituner: First commits - but they need a lot of improvements #234 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 23 March 2019 - 07:16

It always points here (the last line):
def __getattr__(self, name):
if name in self.content.items:
return self.content.items[name]
raise AttributeError(name)
-
And the name is configModeDVBS
I'm afraid that requires a part of Cpp, but what exactly, don’t know... maybe Sat1, then, like, Sat2, etc.

Edited by zeros, 23 March 2019 - 07:18.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Multituner: First commits - but they need a lot of improvements #235 littlesat

  • PLi® Core member
  • 56,280 posts

+691
Excellent

Posted 23 March 2019 - 11:33


raise AttributeError(name)

That was indeed quite a hell ... ;)

 

Few what a terrible code to 'hack' in...

 

https://github.com/O...670783ffff79fe3

 

-Scanning should work now... (tested...)

-On the screen I named it combined tuner

-Tested the 'VU' system is still working

-Tested on DVB-C/T2 tuner and DVB-S2X/C/T2/ATSC tuner

-Tested FBC tuners for no side effects

And more tiny things...

 

Now my 'head' is full...

 

But always 'you' are the ones finding the real culpits :)


Edited by littlesat, 23 March 2019 - 11:38.

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


Re: Multituner: First commits - but they need a lot of improvements #236 Huevos

  • PLi® Contributor
  • 4,249 posts

+158
Excellent

Posted 23 March 2019 - 11:41

Thanks.



Re: Multituner: First commits - but they need a lot of improvements #237 littlesat

  • PLi® Core member
  • 56,280 posts

+691
Excellent

Posted 23 March 2019 - 12:07


t always points here (the last line):
def __getattr__(self, name):
if name in self.content.items:
return self.content.items[name]
raise AttributeError(name)

 

I did not saw it here... but I found the cupit by trying on a box that still had the new code...

 

https://github.com/O...316d8b5ac033040

 

it happens during the conversion from old multituner to hotwitchable/combined tuner... Solved in my next commit...

Sorry I tried it on 4 different boxes and that happens later on a 5th box not updated for longer time...

 

Now I need really a break!!!


Edited by littlesat, 23 March 2019 - 12:10.

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


Re: Multituner: First commits - but they need a lot of improvements #238 Huevos

  • PLi® Contributor
  • 4,249 posts

+158
Excellent

Posted 23 March 2019 - 15:03

Hi Littlesat,

 

https://github.com/O...3e74f2e9f02R540

if n.isCompatible("DVB-S") and n.config_mode in ("advanced", "simple") and len(nimmanager.getSatListForNim(n.slot)) < 1 and len(n.getTunerTypesEnabled()) < 2:

From satfinder... You only need 1 tuner type enabled for satfinder. Why have you added a minimum of 2 tuner types? Is this an error?



Re: Multituner: First commits - but they need a lot of improvements #239 littlesat

  • PLi® Core member
  • 56,280 posts

+691
Excellent

Posted 23 March 2019 - 15:12

Good Q:

 

This limitation is only when you have DVB-S without satellites defined.

 

The 'len(n.getTunerTypesEnabled()) < 2' was added for combo DVB-S with T/C/ATSC tuners... when you have DVB-C,T or ATSC you do not care about not having satellites.... Then the tuner can do 'satfinding'...

When the value = 1 then you confirm only having DVB-S


Edited by littlesat, 23 March 2019 - 15:14.

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


Re: Multituner: First commits - but they need a lot of improvements #240 Huevos

  • PLi® Contributor
  • 4,249 posts

+158
Excellent

Posted 23 March 2019 - 17:17

???

 

When there is only 1 tuner type the tuner should be accepted. Your code skips the tuner.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users