Tvheadend not working, w_scan does

Hello,

I know there are a million tvheadend-tutorials out there, still I cannot get tvheadend to work.

My DVB-C stick (TT CT2-4400) seems to be properly recognized:
$ sudo journalctl | grep dvb osmc kernel: usb 1-1.5.4: dvb_usb_v2: found a 'TechnoTrend TVStick CT2-4400' in warm state osmc kernel: usb 1-1.5.4: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer osmc kernel: usb 1-1.5.4: dvb_usb_v2: MAC address: bc:ea:2b:44:06:49 osmc kernel: usb 1-1.5.4: dvb_usb_v2: schedule remote query interval to 300 msecs osmc kernel: usb 1-1.5.4: dvb_usb_v2: 'TechnoTrend TVStick CT2-4400' successfully initialized and connected osmc kernel: usbcore: registered new interface driver dvb_usb_dvbsky osmc kernel: si2168 3-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw' osmc tvheadend[565]: linuxdvb: adapter added /dev/dvb/adapter0

$ sudo journalctl | grep firmware osmc kernel: raspberrypi-firmware soc:firmware: Attached to firmware from 2015-11-25 17:54 osmc kernel: si2168 3-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw' osmc kernel: si2168 3-0064: firmware version: 4.0.11 osmc kernel: si2157 4-0060: firmware version: 3.0.5

But while w_scan works, I cannot get any channels via tvheadend. This is what I tried:

  • Configuration -> DVB-Input -> TV-Adapters -> DVB-C -> check Enabled
  • Configuration -> DVB-Input -> Networks -> Add -> Type: DVB-C -> Predefined Muxes: Austria (at-Vienna)
  • Muxes -> Add -> Delivery System: DVBC/ANNEX_A
  • Configuration -> DVB-Input -> TV-Adapters -> DVB-C -> fill in Network -> Save
  • Configuration -> DVB-Input -> Services -> stays EMPTY

In the System Log I get:
mpegts: 377.75MHz in TT CT2-4400 - tuning on Silicon Labs Si2168 : DVB-C #0 opentv-skyuk: registering mux 377.75MHz in TT CT2-4400 subscription: 0005: "scan" subscribing to mux "377.75MHz", weight: 5, adapter: "Silicon Labs Si2168 : DVB-C #0", network: "TT CT2-4400", service: "Raw PID Subscription" linuxdvb: Unable to provide BER value. linuxdvb: Unhandled SNR scale: 0 linuxdvb: Unable to provide SNR value. linuxdvb: Unable to provide UNC value. mpegts: 377.75MHz in TT CT2-4400 - scan no data, failed subscription: 0005: "scan" unsubscribing

What am I doing wrong?

Have you check tvheadend is running ?
If not try

sudo apt-get install bzip2

and reboot.

Yes, tvheadend is running.

$ sudo systemctl status tvheadend.service
tvheadend.service - TVHeadend Server
Loaded: loaded (/lib/systemd/system/tvheadend.service; enabled)
Active: active (running) since Mon 2015-12-07 15:20:07 CET; 1h 19min ago
rocess: 907 ExecStop=/usr/bin/rm /run/tvheadend.pid (code=exited, status=203/EXEC)
Process: 3394 ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u osmc -g video (code=exited, status=0/SUCCESS)
Process: 3392 ExecStartPre=/bin/sleep 10 (code=exited, status=0/SUCCESS)
Main PID: 3396 (tvheadend)
CGroup: /system.slice/tvheadend.service
        └─3396 /usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u osmc -g video

osmc tvheadend[3396]: mpegts: 377.75MHz in TT CT2-4400 - tuning on Silicon Labs Si2168 : DVB-C #0
osmc tvheadend[3396]: opentv-skyuk: registering mux 377.75MHz in TT CT2-4400
osmc tvheadend[3396]: subscription: 0003: "scan" subscribing to mux "377.75MHz", weight: 5, adapter: "Silicon Labs Si2168 : DVB-C #0", network: "TT CT2-4400", service: "Raw PID Subscription"
osmc tvheadend[3396]: mpegts: 377.75MHz in TT CT2-4400 - scan no data, failed
osmc tvheadend[3396]: subscription: 0003: "scan" unsubscribing

I do think i had the same trouble at some point.
I have a PCTV triplestick 292e and like yours, it based on Silicon si2168.
OSMC is not compiled with the firmware for the stick. So i had to put them by hand into:
/lib/firmware/
But when i only put in the one of the 2 files in the folder, i do think i ended up with the same scan results.
So in my case i need: dvb-demod-si2168-b40-01.fw & dvb-demod-si2168-02.fw
It might be the same for you.
You can look at github.com/OpenElec/dvb-firmware
to find a propiate firmware for your stick, if you need it.

Thanks for your answer, I will try with some other firmware files, although I have already downloaded the ones for TT CT2-4400 rev.B in /lib/firmware.
The strange thing is that w_scan doesn’t have any problems, and I don’t see any errors in

$ dmesg | grep -i si21
si2168 3-0064: Silicon Labs Si2168 successfully attached
si2157 4-0060: Silicon Labs Si2147/2148/2157/2158 successfully attached
usb 1-1.5.4: DVB: registering adapter 0 frontend 0 (Silicon Labs Si2168)…
si2168 3-0064: found a ‘Silicon Labs Si2168-B40’
si2168 3-0064: downloading firmware from file ‘dvb-demod-si2168-b40-01.fw’
si2168 3-0064: firmware version: 4.0.11
si2157 4-0060: found a ‘Silicon Labs Si2157-A30’
si2157 4-0060: firmware version: 3.0.5

I not sure that the firmware is fine. But you get the same writeout allmost like me, when mine works.
Except from that you are using version 4.0.11 and i’m using 4.0.19
Another differens is si2157-A30 where i have dvb-demod-si2168-02.fw
So i suspect is mismatch of firmware, that course the trouble.
My suggestion is to try with the same firmware as mine, as it looks like the sticks is based on the same chip & controller.
I’m quite sure that i have downloaded both from github.com/OpenElec/dvb-firmware

wget https://github.com/OpenELEC/dvb-firmware/master/firmware/dvb-demod-si2168-02.fw?raw=true
mv dvb-demod-si2168-02.fw /lib/firmware/dvb-demod-si2168-02.fw

wget https://github.com/OpenELEC/dvb-firmware/master/firmware/dvb-demod-si2168-b40-01.fw?raw=true
mv dvb-demod-si2168-b40-01.fw /lib/firmware/dvb-demod-si2168-b40-01.fw

I remember that one guy i a thread at Tvhedend.org, did mention he had trouble with 4.0.11 and was using 4.0.4. These version is available at:
Index of /linux/v4l-dvb/firmware/Si2168

I had a look in my mails and found one i wrote to Sam Nazarko about the missing firmware and at the time OSMC was shipped with (1 file!) dvb-demod-si2165.fw
This firmware was not enough and did create the same behavior as you describe.
I had that one removed and downloaded they other two.
You could try to see if it make some change. :smiley:

P.S.: Just so you don’t waste your time like me, loosing 2 hours because i’we forgot to plug in the antenna-signal… ! Check your cabling and your Broadcast-signal…! :joy:

@getdiniks use dvb-fe-tool --femon to see that you have a proper signal, how it should look like can be seen at the bottom of this page http://www.linuxtv.org/wiki/index.php/Dvb-fe-tool