Opened 16 years ago

Closed 16 years ago

#5403 closed enhancement (wontfix)

Patch for support DVB API 3.3 and DVB-S2

Reported by: wagabunda Owned by: Isaac Richards
Priority: minor Milestone: 0.21.1
Component: mythtv Version: 0.21-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

My MythTV 0.21 is working with mantis driver for SkyStar? HD2. Changes:

  • dvbtypes.h: added the definition DVB_API_MULTIPROTO
  • dvbchannel.h: delivery property for store tuner capability (from DVBFE_GET_DELSYS)
  • dvbchannel.cpp: added support for API 3.3 and removed for FE_GET_EXTENDED_INFO - it's for my convenience only, this is not a good idea
  • dtvconfparserhelpers.h: include dvbtypes.h for DVB_API_MULTIPROTO definition, added suport for new new values of forward error correction (1/4, 1/3, 2/5, 3/5, 9/10)
  • dtvconfparserhelpers.cpp: support for new FEC values
  • dtvmultiplex.h: include dvbtypes.h for DVB_API_MULTIPROTO
  • scanwizardhelpers.h: support for new FEC values
  • transporteditor.cpp: support for new FEC values, show modulation combo for select 8PSK/QPSK modulation, everything is visible for DVB-S and DVB-S2 cards, unfortunately

to do:

  • move reading card parameters to Tuning method, because in Open tuner delivery is not set
  • restore support for FE_GET_EXTENDED_INFO
  • support for new API requires new DVBChannel class for code transparency, in my opinion

P.S. I can only write in Polish, so sorry for my poor English.

Attachments (6)

mythtv_multiproto.patch (22.4 KB) - added by wagabunda 16 years ago.
mythtv_multiproto.2.patch (22.5 KB) - added by wagabunda 16 years ago.
mythtv_multiproto.3.patch (26.0 KB) - added by wagabunda 16 years ago.
some fixes (displaying all FEC values in transport editor page, recording multiple channels from one multiplex - now card is not retuned)
mythtv_multiproto.4.patch (26.4 KB) - added by wagabunda 16 years ago.
never version of v.3 patch
mythtv_multiproto.5.patch (26.0 KB) - added by wagabunda 16 years ago.
corrected "Failed to get frontend parameters for DVB-S/S2 frontend" error, when adapter delivery is never set (after reboot)
mantis.diff (1.2 KB) - added by wagabunda 16 years ago.
I've made an path to the package Mantis, for faster lock. Maybe this is not done well, but it works. It should also work with a package Multiproto.

Download all attachments as: .zip

Change History (28)

Changed 16 years ago by wagabunda

Attachment: mythtv_multiproto.patch added

Changed 16 years ago by wagabunda

Attachment: mythtv_multiproto.2.patch added

Changed 16 years ago by wagabunda

Attachment: mythtv_multiproto.3.patch added

some fixes (displaying all FEC values in transport editor page, recording multiple channels from one multiplex - now card is not retuned)

comment:1 Changed 16 years ago by NEI

Thanks for the patches! I finally got MythTv? working with the second patch (mythtv_multiproto.2.patch). The only problem I have with that patch is that I can only get LNB1 working. I have a diseqc switch with 4 LNBs. Scanning with "scan" works on all LNBs but not within MythTv?! It does not lock to anything!

But now to the other problem. I just tried your newest patch against latest revision of the 0.21-fixes and revision 17406 of 0.21-fixes. In both cases I get the following error when starting mythbackend:

http://pastebin.com/f51e793bd

And I saw in the commit log, that this patch has been applied to the trunk, but the trunk version is not working for me! No idea, I think i should define the DVB_API_MULTIPROTO because the relevant part has not been merged into libs/libmythtv/dvbtypes.h.

Thanks again for your work!

comment:2 Changed 16 years ago by NEI

Just for the protocol: I'm too stupid. had configured the wrong adapter when testing the third patch. Doing some more tests now. Will post my findings... Sorry

comment:3 in reply to:  2 ; Changed 16 years ago by anonymous

Replying to NEI:

Just for the protocol: I'm too stupid. had configured the wrong adapter when testing the third patch. Doing some more tests now. Will post my findings... Sorry

Reply to myself: Drink less beer! I have the same error whith a complete new build and right adapter configured.

comment:4 in reply to:  3 ; Changed 16 years ago by wagabunda

Reply to myself: Drink less beer!

;)

I have the same error whith a complete new build and right adapter configured.

1) Have You latest multiproto/mantis driver ?

2) You need to copy frontend.h and version.h from multiproto/mantis to /usr/include/linux/dvb/

3) definition of DVB_API_MULTIPROTO is in the file "frontend.h" from mantis/multiproto

comment:5 in reply to:  4 Changed 16 years ago by anonymous

3) definition of DVB_API_MULTIPROTO is in the file "frontend.h" from mantis/multiproto

mistake: not in frontend.h, in version.h there is defined version of API (3.3)

Changed 16 years ago by wagabunda

Attachment: mythtv_multiproto.4.patch added

never version of v.3 patch

comment:6 Changed 16 years ago by wagabunda

*) newer :)

comment:7 Changed 16 years ago by NEI

Yes, i have the latest mantis driver and i did not copy the files! I have to try that later next week as I am not at home for a few days... Thanks!

Changed 16 years ago by wagabunda

Attachment: mythtv_multiproto.5.patch added

corrected "Failed to get frontend parameters for DVB-S/S2 frontend" error, when adapter delivery is never set (after reboot)

comment:8 Changed 16 years ago by anonymous

Hi, I'm new to Mythtv, so I'm a bit clueless. Do I need a scan plugin for Mythtv

I got TerraTec? Cinergy S2 PCI HD working with mantis drivers. scan and szap 2 works fine on most dvb-s channels but have problems locking on several dvb-s2 channels.

Anyway. Did svn co http://svn.mythtv.org/svn/branches/release-0-21-fixes/ mythtv-release-0.21 Patched with mythtv_multiproto.5.patch Did a seemingly successful build. Setup LNB Universal, using Thor-1.W transponders, but tuning fail...

2008-06-26 19:55:13.667 DVBSM(0), Error: Can not read DVB status

eno: Invalid argument (22)

2008-06-26 19:55:13.667 DVBSM(0), Warning: Can not measure Signal Strength

eno: Invalid argument (22)

2008-06-26 19:55:13.668 DVBSM(0), Warning: Can not measure S/N

eno: Invalid argument (22)

2008-06-26 19:55:13.668 DVBSM(0), Warning: Can not measure Bit Error Rate

eno: Invalid argument (22)

2008-06-26 19:55:13.668 DVBSM(0), Warning: Can not count Uncorrected Blocks

eno: Operation not supported (95)

2008-06-26 19:55:13.686 DVBChan(1:0) Error: Tune(): Getting frontend tuning parameters failed.

eno: Invalid argument (22)

Best regards Zeno

comment:9 in reply to:  description Changed 16 years ago by anonymous

Why is this a minor enhancement? Those cards are very popular, esp. the TechnoTrend? TT S2-3200, so i would suggest to raise priority a bit.

Changed 16 years ago by wagabunda

Attachment: mantis.diff added

I've made an path to the package Mantis, for faster lock. Maybe this is not done well, but it works. It should also work with a package Multiproto.

comment:10 Changed 16 years ago by anonymous

I keep getting the following error when trying to scan channels:

mythtv-setup: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.

comment:11 in reply to:  10 ; Changed 16 years ago by sterling.lombard@…

I am also getting the exact same error. I'm using a DVB PC-HDTV-5500 under archlinux (overlord). This is with the latest svn version of mythtv.

-Sterling

Replying to anonymous:

I keep getting the following error when trying to scan channels:

mythtv-setup: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.

comment:12 in reply to:  11 ; Changed 16 years ago by anonymous

Replying to sterling.lombard@gmail.com:

I am also getting the exact same error. I'm using a DVB PC-HDTV-5500 under archlinux (overlord). This is with the latest svn version of mythtv.

-Sterling

Replying to anonymous:

I keep getting the following error when trying to scan channels:

mythtv-setup: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.

Did you use the mythtv_multiproto.5.patch on the latest svn revision? How did you get mythtv to compile... ? I am using http://svn.mythtv.org/svn/branches/release-0-21-fixes/

comment:13 Changed 16 years ago by anonymous

I have some questions, I hope someone can answer them.

After applying this patch are the dvb-s cards still working? Is it easily changed to let it work on the .22 branch? and when is multiproto planned to come into the mainline?

comment:14 Changed 16 years ago by jmwislez

For me it works (TT S2-3200, debian lenny 2.6.24-1-686, multiproto 7207), but when scanning I only see channels on DVB-S, and none on DVB-S2. Is there a trick for getting these channels also?

comment:15 in reply to:  12 ; Changed 16 years ago by skerit@…

Replying to anonymous:

Replying to sterling.lombard@gmail.com:

I am also getting the exact same error. I'm using a DVB PC-HDTV-5500 under archlinux (overlord). This is with the latest svn version of mythtv.

-Sterling

Replying to anonymous:

I keep getting the following error when trying to scan channels:

mythtv-setup: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.

Did you use the mythtv_multiproto.5.patch on the latest svn revision? How did you get mythtv to compile... ? I am using http://svn.mythtv.org/svn/branches/release-0-21-fixes/

I have the exact same problem!

Yes, I have used the mythtv_multiproto.5.patch file on the release-0-21-fixes branch (not svn)

comment:16 in reply to:  15 Changed 16 years ago by anonymous

Replying to skerit@kipdola.com:

Replying to anonymous:

Replying to sterling.lombard@gmail.com:

I am also getting the exact same error. I'm using a DVB PC-HDTV-5500 under archlinux (overlord). This is with the latest svn version of mythtv.

-Sterling

Replying to anonymous:

I keep getting the following error when trying to scan channels:

mythtv-setup: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.

Did you use the mythtv_multiproto.5.patch on the latest svn revision? How did you get mythtv to compile... ? I am using http://svn.mythtv.org/svn/branches/release-0-21-fixes/

I have the exact same problem!

Yes, I have used the mythtv_multiproto.5.patch file on the release-0-21-fixes branch (not svn)

Aha, someone found the answer on the mythtv-dev mailing list. Apparently, the fixes-branch has a problem with multicore systems, you need to execute this command (in stead of regular "mythtv-setup")

sudo taskset -c 0 mythtv-setup

How can you compile the trunk with mythtv_multiproto.5.patch, anyway?

comment:17 Changed 16 years ago by Jonas Kvinge

Thanks

taskset -c 0 mythtv-setup

Fixed the crash. I have an Quad Core CPU so that explained it.

comment:18 Changed 16 years ago by Jonas Kvinge

I have a TT-3200-S2 card. I'm using Canal Digital in Norway, it uses Thor. The following HD channels are found by scan but not found by mythtv when using this patch:

Discovery HD:11434:v:0:25000:513:645:3804:1 Voom HD:11434:v:0:25000:514:648:3805:1 Nat Geo HD:11434:v:0:25000:512:640:3806:1

comment:19 in reply to:  1 Changed 16 years ago by anonymous

Replying to NEI:

Thanks for the patches! I finally got MythTv? working with the second patch >(mythtv_multiproto.2.patch). The only problem I have with that patch is that I can >only get LNB1 working. I have a diseqc switch with 4 LNBs. Scanning with "scan" works >on all LNBs but not within MythTv?! It does not lock to anything!

I also have a problem with diseqc in mythtv. I'am using mythtv_multiproto.5.patch Diseqc is working with vdr. Someone has diseqc working in mythtv ?

comment:20 Changed 16 years ago by skerit

I can confirm, using a TT S2-3200 card, only the first 2 diseqc ports are working, the last 2 are NOT!

comment:21 Changed 16 years ago by anonymous

Has any progress been made on the disecq problem? It's present in the fixes branch AND in the trunk.

This patch doesn't even work anymore

It's unable to scan any channels, like zeno said:

2008-06-26 19:55:13.667 DVBSM(0), Error: Can not read DVB status
    eno: Invalid argument (22)

Or on my box

DVBChan(1:/dev/dvb/adapter0/frontend0) Error: Tune(): Getting frontend tuning parameters failed.
            eno: Ongeldig argument (22)

comment:22 Changed 16 years ago by stuartm

Resolution: wontfix
Status: newclosed

Seems like S2API will be going into the kernel, not multiproto, considering this I'm closing this as wontfix unless the situation should somehow change. Work is being done on adding S2API support to Myth.

Note: See TracTickets for help on using tickets.