Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DVBS Unicable/JESS first tune failed. #313

Closed
tunip opened this issue Jun 20, 2016 · 66 comments
Closed

DVBS Unicable/JESS first tune failed. #313

tunip opened this issue Jun 20, 2016 · 66 comments

Comments

@tunip
Copy link

tunip commented Jun 20, 2016

I use minisatip in a JESS setup. If I tune the first time, tuning fails (tuner1). Then the TV server (Tvheadend) retunes (tuner2) and then it works. Changed also tuner priorities to check if its happens only on tuner1. IT is reproducible on every tuner order. If one tuner is in use, every next tuner starts immediately. 8 parallel streams on aller tuners works fine. Only the first/initial tuning doesn't start instantly.

Start parameter:
minisatip -f -R /data/html -j 0:0-1210,1:1-1420,2:2-1680,3:3-2040,4:4-1005,5:5-1050,6:6-1095,7:7-1140
(tried also -u for unicable)

Tuner:
Digital Devices Max S8 (driver 0.9.26)

LNB:
DUR-line UK 124 - Unicable LNB

Log:
http://pastebin.com/v70TvzLh

@catalinii
Copy link
Owner

catalinii commented Jun 20, 2016

Hi,

To summarize, only the first tune fails. But the tune on other adapters after the first tune works.

  1. tuning later on tuner 0 fails as well?
  2. in the log you have tuned on the same frequency but on different slot and base frequency ... are you sure the jess switch is properly set?
  3. are all the adapters connected to the same cable? If yes, setting -j 0:1-1420,1:0-1210,2:2-1680,3:3-2040,4:4-1005,5:5-1050,6:6-1095,7:7-1140 does it make difference on the first tune?

Thanks

@catalinii catalinii reopened this Jun 20, 2016
@tunip
Copy link
Author

tunip commented Jun 21, 2016

It is replicable on every first tune.

  1. No, if a tuner could tune, the remaining 7 tuners are very fast in switching channel (all 8 tuners works simultaneously fine)
  2. What you see in the log is the behavior of Tvheadend. If a tuner fails, Tvheadend is trying the next free tuner. I am using a unicable/jess LNB/LNC not a switch. One cable from the LNB/LNC directly to the tv-card.
    (http://www.durasat.de/lnb-lnc/unicable-23-mm-flansch-8er-lnb/uk-124-einkabel-lnb-fuer-24-teilnehmer.html)
    (http://www.digital-devices.eu/shop/de/max-serie/max-serie/218/8-tuner-tv-karte-full-spectrum-dd-max-s8-4/8-tv-card)
  3. Yes, all adapters connected to one cable (Modus 3 on the tv-card). Your settings make no difference on the first tune.

I ordered this unicable/jess LNB/LNC because a lot of VU+ Solo 4K (linux tv receiver) users are using this one without a issue. Connected the same way as I (LNB/LNC directly connected to the receiver with one cable).

Thx

@chefmagier
Copy link

chefmagier commented Jun 28, 2016

I suppose you need the "master"-feature because your DVB-card can only use 4 different parameters: "Master Tuner"
So: 4x master and 4x slave. I don't own the card, but looks like your solution

@catalinii
Copy link
Owner

Hi

Is this still an issue?

Thanks

@teissler
Copy link

Hi,

at least for me on e9345b9 this is still an issue.

If you made any changes regarding this since, i have to verify this with a new version.

Kind regards

@teissler
Copy link

teissler commented Aug 31, 2016

I also have this issue on b124ec9.

Uploading minisatip_log_1st_jess_tune_failed.txt…

@catalinii
Copy link
Owner

Did the suggestion about master help?

Thanks

@tunip
Copy link
Author

tunip commented Aug 31, 2016

You don't need a master for this tuner card. Question is more, where we can resolve this issue. In minisatip or on client side (tvheadend). If i put this card in a octopus net case mit digital devices satip server, there is no issue with the first tune. Everything works as expected. Maybe a look into the source code can help. https://github.com/DigitalDevices/octonet

@teissler
Copy link

I use pure vlc as client, so this is definitely an issue of the server component and not the client.

@catalinii
Copy link
Owner

Hi,

can you post the log again ?

it got deleted.

Thanks

@teissler
Copy link

teissler commented Sep 1, 2016

@tunip
Copy link
Author

tunip commented Oct 17, 2016

Any news on this? Can we help in testing ? Do you need more logs? Let us know...

@estimadarocha
Copy link

estimadarocha commented Oct 25, 2016

i am with same problem... first tune always fail... them and after that all works good

i am using a inverto unicable 2 that suplies 2 digibit r1 each one with satipaxe!

@tunip
Copy link
Author

tunip commented Oct 25, 2016

My JESS LNB is directly connected to the tv-card. This means, the tv-card is powering the LNB on first tune. Is there an option in minisatip where the LNB is still powered in idle-state or you can adjust some timings? Maybe this is the culprit?

@9000h
Copy link
Collaborator

9000h commented Oct 25, 2016

maybe the easiest way to fix this issue is to use a power inserter
power-inserter
picture from meintechblog.de

or you can try to use an option at module load, but this is depending on the fronted implementation

dvb_core

dvb_powerdown_on_sleep
Turn LNB power off on sleep
Values: integer
Default: 1 (enabled)

like
options dvb_core dvb_shutdown_timeout=0
options dvb_core dvb_powerdown_on_sleep=0

@catalinii
Copy link
Owner

Hi,

can you please send me the logs again with -l -l -l

This log level shows the unicable log messages.

Thanks

@9000h
Copy link
Collaborator

9000h commented Oct 25, 2016

I have Inverto IDLU-UWT110-CUO1O-32P Unicable 2 Multischalter here (external powered), and have not seen any issue like this.

@estimadarocha
Copy link

@catalinii lets see if @tunip can do it quickly because he's using minisatip directly and i am using it inside satipaxe... however problem seens similar.

@tunip
Copy link
Author

tunip commented Oct 25, 2016

@9000h Thx for your suggestion, but you can't buy the power inserter seperate. Nowhere found to buy it.

@catalinii After the below messages it repeats (tvheadend is trying to tune more then one time):
[25/10 13:31:20.059 AD0]: no data sent for more than 1s sid: 0 for 172.18.0.5:52376
Message repeated 2 times
[25/10 13:31:22.868 signal]: get_signal took 11 ms for adapter 0 handle 7 (status: 0, ber: 0, strength:76,snr: 0, max_strength: 19646, max_snr: 1 0)
[25/10 13:31:23.164 AD0]: no data sent for more than 1s sid: 0 for 172.18.0.5:52376
Message repeated 5 times

And the full log (95KB):
minisatip.log.txt

Note: I disabled the other 7 tuners from the 8 tuner-card in Tvheadend. If I test with only 1 tuner, this shows the issue much more in deep (tuning fails always).

@9000h
Copy link
Collaborator

9000h commented Oct 25, 2016

@tunip you can use also other vendors like:
axing_

@9000h
Copy link
Collaborator

9000h commented Oct 25, 2016

@tunip is the DD Max S8 a revision V2, if yes do have the dddvb 0.9.26 as the driver installed?
there was a fix for the V2 revision
DigitalDevices/dddvb@a98a7c9

@tunip
Copy link
Author

tunip commented Oct 25, 2016

@9000h Many Thanks! Lets see if catalinii can fix this tuning-issue in minisatip before I invest 30€.
Should v2 and yes I use dddvb version 0.9.26. Card works fine with tvheadend and vdr. It also works with minisatip if I enable more than 1 tuner (with the first tuning fails of course).

@9000h
Copy link
Collaborator

9000h commented Oct 25, 2016

@tunip did you try to load the module dvb_core with this options?

options dvb_core dvb_shutdown_timeout=0
options dvb_core dvb_powerdown_on_sleep=0

@9000h
Copy link
Collaborator

9000h commented Oct 25, 2016

@tunip is your DD Max S8 V2 going hot?

@catalinii
Copy link
Owner

Hi, can u try the last commit if it makes a difference ?

Thanks

@tunip
Copy link
Author

tunip commented Oct 25, 2016

@catalinii Thx for the quick update. Unfortunately the same issue.

Full log:
minisatip_2.log.txt

@9000h DD Max S8 V2 is quite "cool" (in the front of my case i have 3 120mm fans in the direction of the card. And i case of Unicable/JESS the card gets not so hot as you use all 4 ports). Have to test your module options later.

@9000h
Copy link
Collaborator

9000h commented Oct 25, 2016

ok if your DD Max S8 V2 is quite "cool" the you have a good one, there where some out with wrong SMD resistors these are going hot.

@catalinii
Copy link
Owner

Hey guys,

  1. the get_signal has nothing to do with tuning as it is in a different thread.
  2. I do not have access to a system with this configuration so it is kinda of hard for me to figure out what is missing (if I would it would be easier).
  3. If you guys have an idea what is missing let me know and I can implement it.
  4. If I would have access to a system that works, and maybe you know another software that does work (and have available sources) I can look what is missing.

Thanks

@estimadarocha
Copy link

@catalinii i have a system with tvheadend receiving from 2 satipaxe from perexg that was minisatip in its code. Satipaxe receives from jess lnb.

By the way and sorry for off topic does a small contribution may help you with this and the kernel buffers issue???

@chefmagier
Copy link

Hi all,
I am no programmer, but please have a look at the current git of tvheadend.
I just got the JESS compatibility in one of the last patches with my DUR-Line JESS LNB and my Max S8.
They added an "unicable II switch" to differ between the standards.
Works perfectly.

Gesendet mit meinem HTC

----- Nachricht beantworten -----
Von: "estimadarocha" [email protected]
An: "catalinii/minisatip" [email protected]
Cc: "chefmagier" [email protected], "Comment" [email protected]
Betreff: [catalinii/minisatip] DVBS Unicable/JESS first tune failed. (#313)
Datum: Do., Nov. 3, 2016 01:41

@catalinii i have a system with tvheadend receiving from 2 satipaxe from perexg that was minisatip in its code. Satipaxe receives from jess lnb.

By the way and sorry for off topic does a small contribution may help you with this and the kernel buffers issue???

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/catalinii/minisatip","title":"catalinii/minisatip","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/catalinii/minisatip"}},"updates":{"snippets":[{"icon":"PERSON","message":"@estimadarocha in #313: @catalinii i have a system with tvheadend receiving from 2 satipaxe from perexg that was minisatip in its code. Satipaxe receives from jess lnb. \r\n\r\nBy the way and sorry for off topic does a small contribution may help you with this and the kernel buffers issue???"}],"action":{"name":"View Issue","url":"https://github.com/catalinii/minisatip/issues/313#issuecomment-258041496"}}}

catalinii pushed a commit that referenced this issue Nov 3, 2016
@tunip
Copy link
Author

tunip commented Nov 3, 2016

@catalinii If you want/need access to my system, let me know it.

Working solutions are VDR, Tvheadend (partly), Vu+ STBs.

VDR:
ftp://ftp.tvdr.de/vdr/vdr-2.2.0.tar.bz2

Tvheadend:
tvheadend/tvheadend@766f2fd
tvheadend/tvheadend@3f79dff

Vu+ STB:
http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commit;h=7b7a80a1f979b0bd9c68aa33af968db25bf63f81

@chefmagier
If you only enable 1 tuner/adapter in Tvheadend (without minisatip) and restarting the daemon, the first tune also fails.

[   INFO] http: 10.10.17.2: using ticket A89474FA15591C4323F72A402103C63C47FC1441 for /stream/channelid/2109665682
[   INFO] mpegts: 11493.75H in Astra - tuning on MXL5XX : DVB-S #0
[   INFO] subscription: 0001: "HTTP" subscribing on channel "Das Erste HD", weight: 100, adapter: "MXL5XX : DVB-S #0", network: "Astra", mux: "11493.75H", provider: "ARD", service: "Das Erste HD", profile="transcode-mobile", hostname="10.10.17.2", client="VLC/3.0.0-git LibVLC/3.0.0-git"
[WARNING] subscription: 0001: service instance is bad, reason: No input detected
[WARNING] subscription: 0001: restarting channel Das Erste HD
[   INFO] mpegts: 11493.75H in Astra - tuning on MXL5XX : DVB-S #0
[   INFO] subscription: 0001: "HTTP" subscribing on channel "Das Erste HD", weight: 100, adapter: "MXL5XX : DVB-S #0", network: "Astra", mux: "11493.75H", provider: "ARD", service: "Das Erste HD", profile="transcode-mobile", hostname="10.10.17.2", client="VLC/3.0.0-git LibVLC/3.0.0-git"

But every next tune on this tuner/adapter is successful. Tvheadend is still powering the LNB also when it is not in use (my server is connected to a UPS with power consumption display - the different is 7 Watt if the LNB is powered).
If I enable powersave option (switch off LNB) in Tvheadend (like minisatip?), every tuning also fails in Tvheadend.

VDR is always powering the LNB if you use the tuners or not, because the tuners are in "use" (no powersave option here).

Can't say about the Vu+ STBs, because I do not have one.

In minisatip with only 1 tuner/adapter enabled first tuning fails, but if I stop and start the tuning again, tuning is successful (LNB is then powered from the first unsuccessful attempt).

@9000h
Copy link
Collaborator

9000h commented Nov 3, 2016

@tunip so if I get this right you can reproduce the same issue in tvh and in VDR there is no issue?

@9000h
Copy link
Collaborator

9000h commented Nov 3, 2016

there could be another difference, I use unicable/jess with pin like:

-u 4:4-984[-48],5:5-1020[-23],6:6-1056[-88],7:7-1092[-204]
or
-j 4:4-984[-48],5:5-1020[-23],6:6-1056[-88],7:7-1092[-204]

@catalinii
Copy link
Owner

estimadarocha,

I am kinda of short on time for the next 2 weeks, this is the reason I could not work on this.
I will take a look once I am more free, probably those 2 issues will be the last in version 0.5, as you are using satip-axe

tunip,

yes probably me testing it is the best way forward, writing code, waiting 24h to test it, is not really a way to go.
I think at this point we do not know if vdr works, as it does not power off the LNB.
Probably this can be a fix for minisatip as well (and maybe there are alot of other cases when the LNB does not need to be powered down), but it would be nice to have a solution.

9000h,
I am not sure I understand what you mean, this commit is from 2015.

@tunip
Copy link
Author

tunip commented Nov 4, 2016

@catalinii Thx for your answer. I found a patch for VDR with power saving feature (https://www.mail-archive.com/[email protected]/msg18652.html). If I patch VDR with this code, then the first tuning also fails frontend 0/0 timed out while tuning to channel 1. Every second tuning attempt works then fine until the power saving feature kicks in.

This hardware setup (LNB is directly connected to the tv-card in Unicable/JESS mode without external power) is not really a common way for some linux dvb solutions right now. I also have 2 different LNBs (Quattro & Quad) here for further testing (also without a external power supply or switch). The tv-card can handle them all. But I have to move my server close to the dish and need some more cabling (4 cables instead of 1).

maxs8anschlaussschema3xbild_w554

If you have more time in a few weeks, please feel free to contact me for a joint session.

@9000h
Copy link
Collaborator

9000h commented Nov 4, 2016

@9000h
Copy link
Collaborator

9000h commented Nov 4, 2016

@catalinii sorry I did somehow drift to an old version, so nothing wrong in dvb.c

catalinii pushed a commit that referenced this issue Nov 5, 2016
@catalinii
Copy link
Owner

I am not sure at this point that the issues are with the code. Maybe the lnb needs more than 15-20ms to be up.

Anyway i have added the --nopm switch to keep the adapter active. This option might be needed fo ranother corner cases as well.

Thanks

@catalinii
Copy link
Owner

Hi,

Is this issue fixed?

Thanks

@tunip
Copy link
Author

tunip commented Nov 14, 2016

Hi @catalinii,

first tuning still fails, but after that first failing, all other tuning attempts are then working ("--Z *" option kicks then in). Have to enable nopm for all adapters. Activating nopm on only one adapter results in first tuning fails if Tvheadend is not reusing nopm-enabled adapter on next tune.

Log with -Z * -l -l -l:

minisatip_1        | [14/11 12:56:23.087 AD7]: keeping the adapter 7 open as the initialization is slow
minisatip_1        | [14/11 12:56:36.350 AD5]: keeping the adapter 5 open as the initialization is slow
minisatip_1        | [14/11 12:56:36.361 AD4]: keeping the adapter 4 open as the initialization is slow
minisatip_1        | [14/11 12:56:36.373 AD6]: keeping the adapter 6 open as the initialization is slow
minisatip_1        | [14/11 12:56:36.464 AD3]: keeping the adapter 3 open as the initialization is slow
minisatip_1        | [14/11 12:56:36.466 AD2]: keeping the adapter 2 open as the initialization is slow
minisatip_1        | [14/11 12:56:36.564 AD0]: keeping the adapter 0 open as the initialization is slow
minisatip_1        | [14/11 12:56:36.565 AD1]: keeping the adapter 1 open as the initialization is slow

@catalinii
Copy link
Owner

My question is, if nopm is enabled, does work? (except the first tune)?

@tunip
Copy link
Author

tunip commented Nov 14, 2016

If nopm is ebabled on all tuners, yes then it works (except the first tune).

@estimadarocha
Copy link

So.... the initial problem persist.... the problem always was first tune fail right?

@catalinii
Copy link
Owner

Hi,

If I would have access to a system I could take a look if there is a fix for it...

@estimadarocha
Copy link

@catalinii can i know your direct contact...like skype or mail or something else??

@catalinii
Copy link
Owner

Hi,

You can send me on the email from the source code.

Thanks

@tunip
Copy link
Author

tunip commented Nov 18, 2016

As it works now for me, I will close this issue. If the problem occurs again, we can reopen it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants