Project

General

Profile

SCR / Unicable

Added by MS Schw over 11 years ago

Hello,

at the moment I have XBMC running togeather with VDR. But I'm not very satisfied. It takes realy long to switch the channels.
I hope that tvheadend is much quicker at this point and want to give it a try.

One big Problem:
...I'm a unicable user.....

I've searched the forum to find a HowTo for me as an Unicable user.
The only thing I've found is, that I have to patch the Kernel.

As I'm not very familar how this works (OK I heave done it befor, but this is about 10 years ago)
Does somebody heave a howto for me including a download link for the patch, so that I can achieve this?

What I've got:

DVB-Card:
Digital Devices Cine2 v6

lspci \-vv
01:00.0 Multimedia controller: Digital Devices GmbH Octopus LE DVB adapter
Subsystem: Digital Devices GmbH Device 0002
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 4 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fbef0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [70] MSI: Enable- Count=1/2 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [90] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Latency L0 unlimited, L1 <1us
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
Capabilities: [100 v1] Vendor Specific Information: ID=0000 Rev=0 Len=00c
Kernel driver in use: DDBridge
Kernel modules: ddbridge

uname -a
Linux homeserver 3.2.0-43-generic #68-Ubuntu SMP Wed May 15 03:33:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux


Replies (35)

RE: SCR / Unicable - Added by Matthias Strack over 11 years ago

Here ist the SCR Kernel Patch for Kernel 3.7.10 -> http://m74.libra.uberspace.de/oc/public.php?service=files&t=043415c123c4bfebee678f97b3be8dc8
You have to build a new Kernel with this Patch, Howto: http://www.howtoforge.com/kernel_compilation_ubuntu -> patching Kernel https://www.kernel.org/doc/Documentation/applying-patches.txt
After that, you have to configure the Kernel SCR Parameters with the dcv-scr-setup tool (included in the Patch)

Hope it helps.

RE: SCR / Unicable - Added by Stefan Seyfried over 11 years ago

Instead of a strange kernel patch which you'll need to apply again and again, you could also try the code I posted to the feature tracker https://tvheadend.org/issues/1752 :)

RE: SCR / Unicable - Added by Matthias Strack over 11 years ago

Native SCR in TVHeadend!!!

Great!!!

RE: SCR / Unicable - Added by MS Schw over 11 years ago

Uhh

Yea

That sounds great!

I'll give it a try this week and let you know if it worked for me.

RE: SCR / Unicable - Added by Matthias Strack over 11 years ago

Jun 9 19:35:36 cucumber tvheadend14043: en50494: uni_scr out of range
Jun 9 19:35:36 cucumber tvheadend14043: dvb: en50494 setup failed -1

Any idea what wrong there?
I entered my SCR Freq. in the Config, tried it with Channel 0 and 1...still this error.
And no, i dont need a PIN ;)

RE: SCR / Unicable - Added by MS Schw over 11 years ago

OK, what do I have to enter where?

I have an "Inverto Unicable Black LNB".

Free SCR Channels are 2 and 3.
Frequency for 2 is 1680 and 3 is 2040

Adapter.jpg (126 KB) Adapter.jpg Configuration "TV-Adapters"
sat_conf.jpg (38.4 KB) sat_conf.jpg Configuration "Satellite config"

RE: SCR / Unicable - Added by Stefan Seyfried over 11 years ago

Your screenshots look good at first glance. Does it work?

I have the following in the config files:

seife@susi:~/.hts/tvheadend> cat dvbadapters/_dev_dvb_adapter0_Montage_Technology_DS3000
{
        "enabled": 1,
        "fe_path": "/dev/dvb/adapter0/frontend0",
        "dmx_path": "/dev/dvb/adapter0/demux0",
        "dvr_path": "/dev/dvb/adapter0/dvr0",
        "type": "DVB-S",
        "displayname": "Montage Technology DS3000",
        "autodiscovery": 1,
        "idlescan": 1,
        "idleclose": 0,
        "skip_checksubscr": 0,
        "sidtochan": 0,
        "qmon": 1,
        "poweroff": 0,
        "nitoid": 0,
        "diseqc_version": 2,
        "diseqc_repeats": 0,
        "extrapriority": 0,
        "skip_initialscan": 0,
        "disable_pmt_monitor": 0,
        "full_mux_rx": -1,
        "grace_period": 0
}
seife@susi:~/.hts/tvheadend> cat dvbsatconf/_dev_dvb_adapter0_Montage_Technology_DS3000/2
{
        "id": "2",
        "port": 1,
        "name": "Hotbird unicable",
        "comment": "hotbird unicable entry",
        "lnb": "Universal",
        "uni_scr": 2,
        "uni_qrg": 1280,
        "uni_pin": -1
}
seife@susi:~/.hts/tvheadend> cat dvbsatconf/_dev_dvb_adapter0_Montage_Technology_DS3000/3
{
        "id": "3",
        "port": 0,
        "name": "Astra unicable",
        "comment": "astra unicable entry",
        "lnb": "Universal",
        "uni_scr": 2,
        "uni_qrg": 1280,
        "uni_pin": -1
}
seife@susi:~/.hts/tvheadend> cat dvbsatconf/_dev_dvb_adapter0_Montage_Technology_DS3000/1
{
        "id": "1",
        "port": 0,
        "name": "Default (Port 0, Universal LNB)",
        "comment": "Default satconf entry",
        "uni_scr": 2,
        "uni_qrg": 1280,
        "uni_pin": -1
}

Can you also show your "Multiplexes" tab?

Matthias strack: the out of range message is triggered by uni_scr (SCR channel #) is < 0 or > 7, so it would be interesting to see your config file for the adapter. The parameter is named "uni_scr" in there (see above :))

Unfortunately I'm on the road this week and cannot really test. I have an USB tuner box with me, but no signal, so only theoretical tests are possible :)

I don't use the default entry but the entries 2 and 3. The difference between astra and hotbird is only the port which is interpreted as the "bank switch" bit, switching to input A or B.

RE: SCR / Unicable - Added by Matthias Strack over 11 years ago

{
        "id": "1",
        "port": 0,
        "name": "Default (Port 0, Universal LNB)",
        "comment": "Default satconf entry",
        "lnb": "Universal",
        "uni_scr": 1,
        "uni_qrg": 1210,
        "uni_pin": -1
}

This is my config, still the same error.

RE: SCR / Unicable - Added by Stefan Seyfried over 11 years ago

If you add the initial mux (for Astra) for example, you should have a ~/.hts/tvheadend/dvbmuxes/<your_adapter_name>/<your_adapter_name>_satconf_?

in my case (with a different adapter, but still no signal to test...):

seife@susi:~/.hts/tvheadend> ls dvbmuxes/_dev_dvb_adapter0_Technisat_SkyStar_USB_HD__DVB_S_S2_/ -l
total 4
-rwx------ 1 seife users 322 11. Jun 10:58 _dev_dvb_adapter0_Technisat_SkyStar_USB_HD__DVB_S_S2_12551500_V_satconf_2

this inital satconf contains:
{
        "quality": 100,
        "enabled": 1,
        "status": "Unknown",
        "transportstreamid": 65535,
        "originalnetworkid": 0,
        "frequency": 12551500,
        "initialscan": 0,
        "symbol_rate": 22000000,
        "fec": "5/6",
        "polarisation": "Vertical",
        "modulation": "QPSK",
        "delivery_system": "SYS_DVBS",
        "rolloff": "ROLLOFF_35",
        "satconf": "2" 
}

I think that the "satconf: 2" is important here, as it matches my satconf (I added one for unicable).

But then I'm very new to tvheadend and don't really know how this all plays together. I'll do more test on the weekend once I have a signal to test.

RE: SCR / Unicable - Added by Matthias Strack over 11 years ago

cucumber dvbmuxes # ls _dev_dvb_adapter0_Conexant_CX24116_CX24118/ -l
total 8
-rwx------ 1 hts video 333 Jun 11 17:13 _dev_dvb_adapter0_Conexant_CX24116_CX2411812031500_H
-rwx------ 1 hts video 308 Jun 11 17:15 _dev_dvb_adapter0_Conexant_CX24116_CX2411812551500_V

Content of the satconf

{
        "quality": 100,
        "enabled": 1,
        "status": "Faint signal",
        "transportstreamid": 4,
        "originalnetworkid": 133,
        "network": "ASTRA 1",
        "frequency": 12031500,
        "initialscan": 0,
        "symbol_rate": 27500000,
        "fec": "3/4",
        "polarisation": "Horizontal",
        "modulation": "QPSK",
        "delivery_system": "SYS_DVBS",
        "rolloff": "ROLLOFF_35" 
}

RE: SCR / Unicable - Added by Matthias Strack over 11 years ago

Well...it works...my fault.
I didnt specify the satellite configuration while adding the muxes.

RE: SCR / Unicable - Added by MS Schw over 11 years ago

Hi,

thank you for your reply.

Hi, I had quite a lot of work yesterday, but this afternoon I can have a nother look at the config.

My problem is, that the button "Map the DVB-Services to channels" doesn't activate. So I can't search for any channels....

Multiplexes.jpg (64.5 KB) Multiplexes.jpg multiplexes conf

RE: SCR / Unicable - Added by Matthias Strack over 11 years ago

First Step is 'Add DVB Network by Location..', then TVH scans for Multiplexes (afaik).
If its done the Button 'Map DVB Services to channels...' should be active.
You can check what TVH is doing via the Status Page.

RE: SCR / Unicable - Added by MS Schw over 11 years ago

'Add DVB Network by Location..',

OK I'm a step further.

One problem occured.

I've got an Reciever that uses SCR0 (freq 1210) and SCR1 (freq 1420).
tvheadend should use SCR2 (freq XBMC 1680) and SCR3 (freq 2040).
For some reason I only can use SCR2.

I deleted the config and tried all over. But the problem is still there.

I added a few screenshots again. Or do you prefer console output?

If it helps, i can give you a ssh access. ...

RE: SCR / Unicable - Added by Stefan Seyfried over 11 years ago

"switchport" can only be 0 or 1, and unless you have a two position unicable matrix, you need to set it to 0.

This needs to be fixed in the Webfrontend, that entries with switchport > 1 are not possible if a unicable port is selected. Unfortunately, my web-foo is almost zero :-)

for now, just set switchport to "0" and it might work much better :-)

If you are using two DVB cards, you should set one of them to use SCR2 and the other to use SCR3 to make sure both are not using the same channel accidentally? But then I'm not really sure about the inner workings of tvheadend, this is all pretty new to me.

ssh access is not (yet) necessary, I think we'll sort it out :-)

RE: SCR / Unicable - Added by MS Schw over 11 years ago

I set the switchport to "0" on both DVB cards.
(I have a digital devices card which has two tuners on board)

DVB-1 has SCR2 -> finds channels
DVB-0 has SCR3 -> doesn't do anything, multiplex starts with quality = 100% but then ends up with: "frontend status says: Frontend status "no signal""

RE: SCR / Unicable - Added by Stefan Seyfried over 11 years ago

Ok, that's interesting. I'm looking at the code trying to explain it but I can't see how this happens.

Could you try to switch the SCR assignment between DVB-0 and DVB-1 and test if this might be frontend related?

How did you connect the tuners to your cable?

Cable -> splitter -> tuner1/tuner2

or

cable -> tuner1 -> loopthrough to tuner2

(in case your board has loopthrough ports.
I'd guess the second would not work well.

Could you ever test both tuners on a non-unicable setup to ensure both do send DiSEqC commands correctly?

RE: SCR / Unicable - Added by MS Schw over 11 years ago

Ok, my tuners are connected:

Cable -> splitter -> Tuner 1 / Tuner 2

I swaped SCR2 and SCR3. Only SCR2 works.

I had the card working in a Windows Mediacenter (Win7) with both tuners.

RE: SCR / Unicable - Added by Stefan Seyfried over 11 years ago

Ok, I'll test it when I'm home again and try to reproduce it.
I have both a Inverto unicable LNB on one dish and a Inverto IDLP-USS2OO-CUO1O-8PP with two LNBs on another dish to test, so let's hope my setup has the same problem :-)

RE: SCR / Unicable - Added by Stefan Seyfried over 11 years ago

I think I found the problem.

Make sure you set the PIN to -1 if you don't need it, otherwise the LNB will not accept the commands.
I'd bet that you have PIN -1 on SCR2 and PIN 0 on SCR3.

The problem is, that the web frontend defaults to PIN=0 when adding a new config, which is more often wrong than right.
I'll see what I can do about that, but as I already wrote: the web-stuff is not my strong part :)

Edit: I now pushed an update that defaults to PIN==-1 also for new satellite configs via "Add entry"

RE: SCR / Unicable - Added by Stefan Seyfried over 11 years ago

I reworked the code, the setup should now be more logical.

Best is to check out again, since master branch has changed (old master is available as branch "en50494-1st-try").

Now, the SCR#, Frequency and Pin are configured in the adapter configuration, only the port is configured in the satconf settings (port is not often used anyway).

So in your case, configure one adapter to SCR2 and the second to SCR3. I'm pretty sure it will work.

Defaults are also better (PIN is -1 per default).

If this one works well for you, I'll do a pull request to get it upstream.

RE: SCR / Unicable - Added by MS Schw over 11 years ago

cool

I'll start with the new code and post the result!

Thanx for your work!!!!!!!

RE: SCR / Unicable - Added by MS Schw over 11 years ago

Ok, looks much better now.

:D

Channelscanning works now on both adapters.
Now I can start making the other configuration steps.

Any clue when/if youre code will be added to the main branch? ;)

RE: SCR / Unicable - Added by MS Schw over 11 years ago

OK, everything works,
except for the channelimages (imagecache: failed to download /mnt/samba/TV-Aufzeichnungen/xbmc/Channellogos/"zdf hd.png"),
but that is an other topic.

(1-25/35)