Project

General

Profile

DVB-C mode problem with usb tuner

Added by W de Hoog almost 9 years ago

Hi,

A week ago I installed tvheadend on a BananaPi with a Sundtek MediaTV Pro II usb tuner. I use it in DVB-C mode. Everything worked. Then I rebooted and tvheadend could not open any mux anymore ('scan no data, failed' or no input). Tried to force rescan, reinstall, you name it. Nothing worked. All this time w_scan and Sundtek's mediaclient had no problems with tuning.

Now it seems to work again. What I think the problem is is that tvheadend and the sundtek stick somehow not get to agree on the mode of the tuner. I inserted

/opt/bin/mediaclient --mode=DVBC
/opt/bin/mediaclient --setdtvmode=DVBC

into the tvheadend startup script to force the stick in DVB-C mode and now it remains working after a reboot. (the 2nd line is not needed according to sundtek support)

So I am not sure if this is a problem of one of the components or it is my own fault.


Replies (3)

RE: DVB-C mode problem with usb tuner - Added by Markus Rechberger (Sundtek) almost 9 years ago

possibly that tvheadend starts before the driver is started.

There is absolutely no problem with tvheadend or the driver itself.

You might try to create a configuration file which restarts tvheadend once the device is initialized

/etc/sundtek.conf
device_attach=service tvheadend restart

or

device_attach=/etc/init.d/tvheadend restart

setdtvmode=DVBC is not necessary it won't do anything because the devices are in DVB-C mode by default (unless defined in the configuration file)

RE: DVB-C mode problem with usb tuner - Added by W de Hoog almost 9 years ago

I tried that but it did not help. Restarting tvheadend manually did not help. Adding initial_dvb_mode=DVBC in /etc/sundtek.conf also did not help. Force scan, remove all muxes, networks, unplugging the tuner, adding all muxes or only one. Nothing helped.

To me it looks like the only thing that helped was removing all tvheadend files (package, config, /home/hts/.hts, all of it), reboot, reinstalling it, manually set driver in DVB-C mode and then configuring tvheadend. Now I do not dare to remove the lines that set the driver mode because I already spend a lot of time on this and I am quit happy with the way it works now.

So I am not complaining. Not at all. Just curious on what might be going wrong.

RE: DVB-C mode problem with usb tuner - Added by Markus Rechberger (Sundtek) almost 9 years ago

There are many tvheadend users out there and no one reported such an issue and there hasn't been any bigger change for this for a long time.

You can check the signal strength on the console and even tune on the console using "mediaclient"

/opt/bin/mediaclient --readsignal=0 -d /dev/dvb/adapter0/frontend0

/opt/bin/mediaclient -m DVBC -f 123000000 -M Q256 -S 6900000

-f 123000000 ... replace this with a transponder frequency
-M Q256 ... replace this with a transponder modulation Q64/Q128/Q256)
-S 6900000 ... Symbolrate

You can check if tvheadend is accessing the driver by running following command:
/opt/bin/mediaclient --lc

You might look out for hardware issues I do not think there's a software issue on your side.
Maybe even the BananaPI not having enough power somewhere.

    (1-3/3)