[SOLVED] w_scan works, tvheadend does not find anything (DVB-T2)
Added by jan matejko about 7 years ago
Hey,
Lately i bought a "Astrometa DVB-T/T2/C USB Tuner", some of you might know it.
I know it is a very cheap product but I saw linuxtv stating its compatibility with linux kernel 4.6 and higher, so I went for it.
I am running Ubuntu Server 16.04 with mainline kernel 4.13 and the device is properly detected and showing up as it should, even in tvh both frontends are shown.
I tried the device running w_scan and the results looked promising, I found pretty much every channel there is in my area using DVB-T2.
Then I enabled the correct DVB-Input in TVH and also added the frequencies for each mux manually (using w_scan output), forced the network to scan and waited for the results.
TVH finds zero services on the correct! muxes, although signal strength is shown and also decent while scanning.
Some additional info / suspicious outputs
syslog
Nov 15 14:40:59 tvheadend tvheadend[6788]: mpegts: 506MHz in DE DVB-T2 - tuning on Panasonic MN88473 #0 : DVB-T #0
Nov 15 14:41:06 tvheadend tvheadend[6788]: mpegts: 506MHz in DE DVB-T2 - scan no data, failed
debug log
2017-11-15 15:46:19.540 [ DEBUG]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - status BAD (SIGNAL | CARRIER | VITERBI)
2017-11-15 15:46:19.793 [ DEBUG]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - status GOOD (SIGNAL | CARRIER | VITERBI | SYNC | LOCK)
2017-11-15 15:46:19.793 [ DEBUG]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - locked
dmesg
[ 10.362914] usb 2-1.2.3.4: Product: dvbt2
[ 10.362916] usb 2-1.2.3.4: Manufacturer: astrometadvbt2
[ 22.202772] usb 2-1.2.3.4: dvb_usb_v2: found a 'Astrometa DVB-T2' in warm state
[ 22.276913] usb 2-1.2.3.4: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[ 22.276932] dvbdev: DVB: registering new adapter (Astrometa DVB-T2)
[ 22.404938] usb 2-1.2.3.4: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
[ 22.405048] usb 2-1.2.3.4: DVB: registering adapter 0 frontend 1 (Panasonic MN88473)...
[ 22.850832] rc rc0: Astrometa DVB-T2 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.3/2-1.2.3.4/rc/rc0
[ 22.850889] input: Astrometa DVB-T2 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.3/2-1.2.3.4/rc/rc0/input18
[ 22.851050] rc rc0: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu) registered at minor = 0
[ 22.851056] usb 2-1.2.3.4: dvb_usb_v2: schedule remote query interval to 200 msecs
[ 22.861014] usb 2-1.2.3.4: dvb_usb_v2: 'Astrometa DVB-T2' successfully initialized and connected
[ 22.861063] usbcore: registered new interface driver dvb_usb_rtl28xxu
and another one from dmesg
[ 40.724570] usb 2-1.2.3.4: DVB: adapter 0 frontend 0 frequency 0 out of range (174000000..862000000)
[ 1225.600047] usb 2-1.2.3.4: DVB: adapter 0 frontend 0 frequency 0 out of range (174000000..862000000)
[ 1859.924007] usb 2-1.2.3.4: DVB: adapter 0 frontend 0 frequency 0 out of range (174000000..862000000)
[ 1860.612459] usb 2-1.2.3.4: DVB: adapter 0 frontend 1 frequency 0 out of range (42000000..1002000000)
[ 5396.341789] usb 2-1.2.3.4: DVB: adapter 0 frontend 0 frequency 0 out of range (174000000..862000000)
[ 6470.299488] usb 2-1.2.3.4: DVB: adapter 0 frontend 0 frequency 0 out of range (174000000..862000000)
[ 7559.209005] usb 2-1.2.3.4: DVB: adapter 0 frontend 0 frequency 0 out of range (174000000..862000000)
[ 8096.734732] usb 2-1.2.3.4: DVB: adapter 0 frontend 1 frequency 0 out of range (42000000..1002000000)
Guys, i gotta admit I am pretty much a noob to this but I am willing to learn and if anyone of you has any idead what I could try to find a solution for my problem, I would be more than grateful if he or she could give me at least a hint
Thank you very much in advance!
Jan
Replies (8)
RE: w_scan works, tvheadend does not find anything (DVB-T2) - Added by Mark Clarkstone about 7 years ago
I have the older 72 version of this stick & it worked fine with tvh, I also have the xbox tuner (based on the same chip) and that's fine too.
- What mux information are you using?
- Goto the debugging tab, enter /tmp/tvh.log in the save location and "linuxdvb" in the subsystem (and trace subsystems, tick the low-level box). Paste the log here.
"DVB: adapter 0 frontend 1 frequency 0 out of range " suggests the tuner isn't receiving the right tuning info.
RE: w_scan works, tvheadend does not find anything (DVB-T2) - Added by jan matejko about 7 years ago
Alright, I should have added that I switched the frontends for testing purposes..
Anyway: mux information provided by w_scan
#------------------------------------------------------------------------------
- file automatically generated by w_scan
- (http://wirbel.htpc-forum.de/w_scan/index2.html)
#! <w_scan> 20141122 1 0 TERRESTRIAL DE </w_scan>
#------------------------------------------------------------------------------ - location and provider: <add description here>
- date (yyyy-mm-dd) : 2017-11-15
- provided by (opt) : <your name or email here> #
- T2 <freq> <bw> <fec_hi> <fec_lo> <mod> <tm> <guard> <hi> [plp_id] [# comment]
#------------------------------------------------------------------------------
T2 506000000 8MHz AUTO AUTO AUTO 16k 19/256 AUTO # WDR DoE
T2 538000000 8MHz AUTO AUTO AUTO 16k 19/128 AUTO # ZDF
T2 474000000 8MHz AUTO AUTO AUTO 16k 19/128 AUTO # ARD NRW
T2 626000000 8MHz NONE NONE AUTO 32k 1/16 NONE # MEDIA BROADCAST
T2 690000000 8MHz NONE NONE AUTO 32k 1/16 NONE # MEDIA BROADCAST
T2 578000000 8MHz NONE NONE AUTO 16k 19/128 NONE 1
T2 522000000 8MHz NONE NONE AUTO 32k 1/16 NONE
T2 658000000 8MHz NONE NONE AUTO 32k 1/16 NONE
T2 658000000 8MHz NONE NONE AUTO 32k 1/16 NONE
T2 602000000 8MHz NONE NONE AUTO 32k 1/16 NONE
T2 698000000 8MHz NONE NONE AUTO 32k 1/16 NONE
T2 554000000 8MHz NONE NONE AUTO 32k 1/16 NONE
T2 498000000 8MHz NONE NONE AUTO 32k 1/16 NONE
T2 498000000 8MHz NONE NONE AUTO 32k 1/16 NONE
T2 650000000 8MHz NONE NONE AUTO 32k 1/16 NONE # MEDIA BROADCAST
T2 498000000 8MHz NONE NONE AUTO 32k 1/16 NONE@
@
I just added those that have channels on them manually in tvh..
The log file is attached to my post btw and thanks a lot for your reply
edit (attached log file seems to be unformatted)
here is a excerpt, if it helps:
AUTO guard 19/128 trans 16k plp_id -1 (freq -1)
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 17 => 16
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 03 => 474000000
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 06 => 2
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 05 => 8000000
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 36 => 9
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 37 => 9
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 04 => 6
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 39 => 5
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 38 => 6
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 40 => 4
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 42 => 4294967295
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 61 => 1
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: S2CMD 01 => 0
2017-11-15 19:23:14.912 [ INFO]:subscription: 00D1: "scan" subscribing to mux "474MHz", weight: 2, adapter: "Panasonic MN88473 #0 : DVB-T #0", network: "DE DVB-T2", service: "Raw PID Subscription"
2017-11-15 19:23:14.912 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - checking FE status (ready)
2017-11-15 19:23:15.490 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - status 4 (0000)
2017-11-15 19:23:15.490 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - checking FE status (ready)
[...]
2017-11-15 19:23:19.695 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - checking FE status (ready)
2017-11-15 19:23:19.698 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - status 4 (0000)
2017-11-15 19:23:19.745 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - checking FE status (ready)
2017-11-15 19:23:20.289 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - status 4 (0000)
2017-11-15 19:23:20.289 [ INFO]:mpegts: 474MHz in DE DVB-T2 - scan no data, failed
2017-11-15 19:23:20.289 [ INFO]:subscription: 00D1: "scan" unsubscribing
2017-11-15 19:23:20.289 [ DEBUG]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - stopping 474MHz in DE DVB-T2
2017-11-15 19:23:22.289 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - checking FE status
2017-11-15 19:23:23.126 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0: network list for DVB-T
2017-11-15 19:23:30.289 [ INFO]:mpegts: 474MHz in DE DVB-T2 - tuning on Panasonic MN88473 #0 : DVB-T #0
2017-11-15 19:23:30.289 [ DEBUG]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - starting 474MHz in DE DVB-T2
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - tuning
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - frontend clear
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: tuner Panasonic MN88473 #0 : DVB-T #0 tuning to DVB-T2 freq 474000000 bw 8MHz cons QAM/AUTO hier AUTO code_rate AUTO:AUTO guard 19/128 trans 16k plp_id -1 (freq -1)
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 17 => 16
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 03 => 474000000
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 06 => 2
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 05 => 8000000
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 36 => 9
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 37 => 9
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 04 => 6
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 39 => 5
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 38 => 6
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 40 => 4
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 42 => 4294967295
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 61 => 1
2017-11-15 19:23:30.289 [ TRACE]:linuxdvb: S2CMD 01 => 0
2017-11-15 19:23:30.304 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - frontend clear
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: tuner Panasonic MN88473 #0 : DVB-T #0 tuning to DVB-T2 freq 474000000 bw 8MHz cons QAM/AUTO hier AUTO code_rate AUTO:AUTO guard 19/128 trans 16k plp_id -1 (freq -1)
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 17 => 16
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 03 => 474000000
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 06 => 2
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 05 => 8000000
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 36 => 9
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 37 => 9
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 04 => 6
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 39 => 5
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 38 => 6
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 40 => 4
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 42 => 4294967295
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 61 => 1
2017-11-15 19:23:30.880 [ TRACE]:linuxdvb: S2CMD 01 => 0
2017-11-15 19:23:30.880 [ INFO]:subscription: 00D3: "scan" subscribing to mux "474MHz", weight: 2, adapter: "Panasonic MN88473 #0 : DVB-T #0", network: "DE DVB-T2", service: "Raw PID Subscription"
2017-11-15 19:23:30.912 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - checking FE status (ready)
2017-11-15 19:23:31.458 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - status 4 (0000)
[...]
2017-11-15 19:23:35.709 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - checking FE status (ready)
2017-11-15 19:23:36.257 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - status 4 (0000)
2017-11-15 19:23:36.257 [ INFO]:mpegts: 474MHz in DE DVB-T2 - scan no data, failed
2017-11-15 19:23:36.257 [ INFO]:subscription: 00D3: "scan" unsubscribing
2017-11-15 19:23:36.257 [ DEBUG]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - stopping 474MHz in DE DVB-T2
2017-11-15 19:23:37.137 [ TRACE]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0: network list for DVB-T
RE: w_scan works, tvheadend does not find anything (DVB-T2) - Added by Mark Clarkstone about 7 years ago
Hmm..
11-15 19:01:29.375 [WARNING]:linuxdvb: Panasonic MN88473 #0 : DVB-T #0 - poll TIMEOUT 2017-11-15 19:01:32.204 [ INFO]:mpegts: 538MHz in DE DVB-T2 - scan no data, failed
poll timeout suggests the tuner isn't sending the data back in a timely manner. It's getting a lock, but then that's it. Are you able to play a mux in something like vlc?
You may want to open an issue - with the log (or link to this thread).
This is very strange..
RE: w_scan works, tvheadend does not find anything (DVB-T2) - Added by jan matejko about 7 years ago
Okay, either I am jsut too stupid to do this real quick or it does not work.
My server is headless and never even fiddled with vlc network streams via command line before, so not sure if it works, sorry :/.
But I will take your advise and open an issue, thank you very much so far.
RE: w_scan works, tvheadend does not find anything (DVB-T2) - Added by Em Smith about 7 years ago
The one thing you said is that you manually added the muxes. You shouldn't have to do that. On Configuration->dvb->networks, if you click "edit" button in the toolbar then there is a dialog box that has a field "pre-defined muxes" and you should be able to pick your country and transmitter. If the drop-down in the dialog box is empty then perhaps you need to install the package dtv-scan-tables.
So, I'd delete the existing muxes, then try the above and see if it helps.
RE: w_scan works, tvheadend does not find anything (DVB-T2) - Added by jan matejko about 7 years ago
The presets are pretty much useless for me, my transmitter is not listed and there is no list for dvb-t2 shown. I think the auto-Default dvbt preset does not align with the dvb-t2 frequencies for Germany :/
RE: w_scan works, tvheadend does not find anything (DVB-T2) - Added by Em Smith about 7 years ago
That's a shame. Patches welcome! I suspect it's because dvb-t2 is relatively new in Germany.
It looks to me that the format in the dtv file is the output from w_scan. So perhaps you can put the output file from w_scan in to the /usr/share/dvb/dvb-t directory.
RE: w_scan works, tvheadend does not find anything (DVB-T2) - Added by jan matejko about 7 years ago
Actually it works now. All my muxes in tvh had a PLP ID of -1 as standard setting. I changed it to "0" and it started working.. Feeling a bit dumb now but the overlay on PLP ID said: "Most people will not have to change this setting.", so I erroneously assumed I was not most people... Thanks for your input though, I actually learned quite a bit while fiddeling around with it