seife / vtuner

Automatically exported from code.google.com/p/vtuner
0 stars 0 forks source link

Tuning failed on 8PSK channelsearch using x86_64 as client and dreambox as server #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Search channels on Thor 0.8W on dreambox
2. Search channels on Thor 0.8W on PC
3. look at the differences.

I think this might be something with vtunerc kernel module as dreambox finds 
all HD channels and PC doesnt find any channels on 8PSK S2.

(It finds NRK HD etc. but that is on 8PSK)

http://www.lyngsat.com/packages/canaldigital.html

----------------------------------> Using DVB-S2
>>> tune to: 11216:vC78S1:S0.0W:24500:
DVB-S IF freq is 1466000
WARNING: >>> tuning failed!!!
>>> tune to: 11216:vC78S1:S0.0W:24500: (tuning failed)
DVB-S IF freq is 1466000
WARNING: >>> tuning failed!!!
----------------------------------> Using DVB-S2
>>> tune to: 10778:vC34M5O25S1:S0.0W:25000:
DVB-S IF freq is 1028000
WARNING: >>> tuning failed!!!

Attaching Dreambox channels and vdr channels.conf

Original issue reported on code.google.com by kriss...@gmail.com on 9 Aug 2011 at 10:05

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I was to fast writing.

(It finds NRK HD etc. but that is on 8PSK) should have been
(It finds NRK HD etc. but that is not on 8PSK)

Original comment by kriss...@gmail.com on 9 Aug 2011 at 1:18

GoogleCodeExporter commented 9 years ago
I can't reproduce this at the moment (as the kernel module is borken), I'll 
come back as soon as the kernel module is working.

I've only access to astra 19.2E. It'd be cool if you find not working/scanning 
channels on this satellite.

Roland 

Original comment by rolmie@gmail.com on 9 Aug 2011 at 7:14

GoogleCodeExporter commented 9 years ago
The same problem happened on sirius 4.8E with tuning failed on S2 channels.

As the dish is at my parents house i cannot promise that I will be able to but 
i will try scan Astra Asap.

Original comment by kriss...@gmail.com on 10 Aug 2011 at 5:24

GoogleCodeExporter commented 9 years ago
I've got this problem fixed in my x86_64 - use following patch:

--- vtuner.apps/build/x86_64/Makefile   2011-08-10 17:45:29.323000011 +0200
+++ vtuner.apps.ok/build/x86_64/Makefile    2011-08-10 17:41:23.481000010 +0200
@@ -2,7 +2,7 @@
 -include ../../Make.config

 CC=$(CC-$(ARCH))
-CFLAGS=-m64 -DHAVE_DVB_API_VERSION=5 $(INCLUDE-x86_64) $(DBGFLAGS)
+CFLAGS=-m64 -fPIC -DHAVE_DVB_API_VERSION=5 $(INCLUDE-x86_64) $(DBGFLAGS)
 LDFLAGS=-lpthread -lrt
 DRIVER=vtuner-dvb-3
 -include ../../Make.rules

Original comment by ales.ju...@gmail.com on 10 Aug 2011 at 3:55

GoogleCodeExporter commented 9 years ago
Just tried the patch and no differences, tuning failed on DVB-s2 but finds 
channels on dvb-s

I really thing its the driver that has the problem as it does work on my 
dreambox standing 5cm next to my x86_64 pc.

I dont know if its something important but when I used to own a kathrein I had 
to activate highsr to be able to scan HD channels.

Original comment by kriss...@gmail.com on 10 Aug 2011 at 6:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

I've yesterday tried all 3 parts (vtunerc.x86_64, vtunerc.ko and as daemon 
vtunerd.arm over stv0900+stv6110) compiled from fresh downloaded sources with 
patch to Makefile for x86_64 applied. I was able to scan all DVB-S2 
transponders from 0.8W except those transmitted on beam K1 Nordic due to lack 
of signal.

On positions 9.0E, 19.2E and 23.5E I didn't find any problem, I was able to 
scan all DVB-S2 transponders from these positions I've randomly selected (lack 
of time).

Please could you be more specific over which hw you are used the daemon? Maybe 
this info could help Honza to find and locate the problem.

Ales

P.S.: Please attach also info about driver and DVB-API versions used in server, 
thanks.

A.

Original comment by ales.ju...@gmail.com on 11 Aug 2011 at 7:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi again,

Hardware for the daemon is just a dreambox 800.

Im living in sweden so K1 should not fail for me (1m dish) and it works using 
(dreambox <-> dreambox but not pc <-> dreambox)

Could you try (if you got time) this transponder? (its T2)
11785,
8PSK
SR 30000
FEC 3/4

You should then find these channels:

Canal + Extra HD/3D     
MTV Live HD     
Nat Geo Wild HD Europe
ESPN America UK
National Geographic Channel HD Europe

The client has Ubuntu (yavdr) with latest version of both client and daemon. 
Was same problem with my gentoo box.

dvb-api version: As its dreambox so I guess its dvb-api 5x.

p.s tried dreambox <-> dreambox now again and it finds 0.8 HD channels (canal 
digital) and 4.8E (viasat) channels which is strange :S

Copied to much so had to delete comment and post it again.

Original comment by kriss...@gmail.com on 11 Aug 2011 at 3:19

GoogleCodeExporter commented 9 years ago
Hi, here it is:

$ ./scan-s2 -s 3 dvb-s/Thor-1.0W 
API major 5, minor 0
scanning dvb-s/Thor-1.0W
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder DVB-S  11785000 H 30000000 3/4 AUTO AUTO
initial transponder DVB-S2 11785000 H 30000000 3/4 AUTO AUTO
----------------------------------> Using DVB-S
>>> tune to: 11785:hC34S0:S0.0W:30000:
DVB-S IF freq is 1185000
WARNING: >>> tuning failed!!!
>>> tune to: 11785:hC34S0:S0.0W:30000: (tuning failed)
DVB-S IF freq is 1185000
WARNING: >>> tuning failed!!!
----------------------------------> Using DVB-S2
>>> tune to: 11785:hC34S1:S0.0W:30000:
DVB-S IF freq is 1185000
>>> parse_section, section number 0 out of 0...!
service_id = 0x0
service_id = 0xEDE
pmt_pid = 0x100
service_id = 0xB77
pmt_pid = 0x102
service_id = 0xEDF
pmt_pid = 0x10E
service_id = 0xB78
pmt_pid = 0x103
service_id = 0x11FE
pmt_pid = 0x104
service_id = 0x1200
pmt_pid = 0x110
service_id = 0x12C5
pmt_pid = 0x101
service_id = 0x12C6
pmt_pid = 0x10F
service_id = 0xEE1
pmt_pid = 0x105
service_id = 0xEE2
pmt_pid = 0x106
>>> parse_section, section number 0 out of 0...!
0x0026 0x0B78: pmt_pid 0x0103 Telenor -- ESPN America HD (running, scrambled)
0x0026 0x0B77: pmt_pid 0x0102 Telenor -- ESPN America HD (running, scrambled)
0x0026 0x1200: pmt_pid 0x0110 Telenor -- MTVN HD (running, scrambled)
0x0026 0x12C6: pmt_pid 0x010F Telenor -- Nat Geo Wild HD (running, scrambled)
0x0026 0x11FE: pmt_pid 0x0104 Telenor -- MTVN HD (running, scrambled)
0x0026 0x12C5: pmt_pid 0x0101 Telenor -- Nat Geo Wild HD (running, scrambled)
0x0026 0x0EE2: pmt_pid 0x0106 Telenor -- CANAL+ EXTRA 3D/HD (running, scrambled)
0x0026 0x0EE1: pmt_pid 0x0105 Telenor -- CANAL+ EXTRA 3D/HD (running, scrambled)
0x0026 0x0EDF: pmt_pid 0x010E Telenor -- Nat Geo HD (running, scrambled)
0x0026 0x0EDE: pmt_pid 0x0100 Telenor -- Nat Geo HD (running, scrambled)
...
dumping lists (10 services)
Nat Geo HD;Telenor:11785:hC34S1:S0.0W:30000:512:640=eng;641=eng:0:0:3806:70:38:0
ESPN America HD;Telenor:11785:hC34S1:S0.0W:30000:515:652=eng:0:0:2935:70:38:0
Nat Geo HD;Telenor:11785:hC34S1:S0.0W:30000:512:640=eng;641=eng:0:0:3807:70:38:0
ESPN America HD;Telenor:11785:hC34S1:S0.0W:30000:515:652=eng:0:0:2936:70:38:0
MTVN HD;Telenor:11785:hC34S1:S0.0W:30000:514:648;648:0:0:4606:70:38:0
MTVN HD;Telenor:11785:hC34S1:S0.0W:30000:514:648;648:0:0:4608:70:38:0
Nat Geo Wild HD;Telenor:11785:hC34S1:S0.0W:30000:513:644=eng:0:0:4805:70:38:0
Nat Geo Wild HD;Telenor:11785:hC34S1:S0.0W:30000:513:644=eng:0:0:4806:70:38:0
CANAL+ EXTRA 
3D/HD;Telenor:11785:hC34S1:S0.0W:30000:516:656=swe,657=eng,657=nor,657=dan,657=f
in:0:0:3809:70:38:0
CANAL+ EXTRA 
3D/HD;Telenor:11785:hC34S1:S0.0W:30000:516:656=swe,657=eng,657=nor,657=dan,657=f
in:0:0:3810:70:38:0

On server is DVB-API 5.3. My PC is amd64, Gentoo, kernel 2.6.35.

But if you are using DM800 as server are you using binary for it compiled or 
downloaded? As I remember there were some changes within last months.

Ales

Original comment by ales.ju...@gmail.com on 11 Aug 2011 at 8:14

GoogleCodeExporter commented 9 years ago
Thank you, I see some light on this :)

I modified the code a bit and I get dvb-api Version 3 when I compile myself but 
dvb-api version 5 when downloading the binary.

What am I missing?

Original comment by kriss...@gmail.com on 12 Aug 2011 at 8:29

GoogleCodeExporter commented 9 years ago
The dvb-api used, is controlled by the kernel headers, included. I'd guess that 
either something is wrong with your headers or the include path is pointing to 
the wrong directory.

I recommend to check whether you have multiple directories containing 
"include/linux/dvb/version.h" (using eg. locate include/linux/dvb/version.h)

The correct version.h will have the following definition:
#define DVB_API_VERSION 5

Original comment by rolmie@gmail.com on 12 Aug 2011 at 6:12

GoogleCodeExporter commented 9 years ago
Thanks, removed Ubuntu and reinstalling gentoo again, so I hope it will work 
out as the problem has to be at the client as dm to dm works, so I hope it will 
get sorted.

Original comment by kriss...@gmail.com on 12 Aug 2011 at 6:47

GoogleCodeExporter commented 9 years ago
Installed Gentoo, and still no HD channels using pc <-> dreambox on Thor / 
Sirius

Original comment by kriss...@gmail.com on 18 Aug 2011 at 3:00

GoogleCodeExporter commented 9 years ago
It is very hard to help you, more info is needed - which kernel and DVB-API do 
you have on PC?

Original comment by ales.ju...@gmail.com on 18 Aug 2011 at 6:38

GoogleCodeExporter commented 9 years ago
pc: Linux 2.6.38-gentoo-r6 #4 SMP Sat Aug 13 17:18:31 CEST 2011 x86_64 Intel(R) 
Atom(TM) CPU D525 @ 1.80GHz GenuineIntel GNU/Linux

#define DVB_API_VERSION 5
#define DVB_API_VERSION_MINOR 2

[   10.461632] virtual DVB adapter driver, version 1.1p3, (c) 2010-11 Honza 
Petrous, SmartImp.cz

gcc version 4.4.5 (Gentoo 4.4.5 p1.3, pie-0.4.5)

Using latest version of vtunerc apps.

100Mbit internet connection WAN and 1Gbps LAN.

Original comment by kriss...@gmail.com on 18 Aug 2011 at 7:15

GoogleCodeExporter commented 9 years ago
I think I have found the bug: vtunerc.ko is using SET_FRONTEND cmd even for S2 
channels (then S2 parameters are encoded inside). It works fine if server is 
DVB API compliant box (linux PC), because vtuner-dvb-3.c is doing the job and 
translate encoded S2 parameters back correctly. What is not case for 
vtuner-dmm-3.c code a so it not works on dreamboxes (when dreambox acts as 
server, so vtunerd.mipsel is involved).

When I get installed mipsel crosstool I will check it.

Original comment by jpetrous on 28 Aug 2011 at 8:56

GoogleCodeExporter commented 9 years ago
Please download attached testing binary vtunerd-fix-issue2-1.mipsel for 
dreambox:

If it works for you I will commit necessary changes to the source.

/Honza

Original comment by jpetrous on 28 Aug 2011 at 9:29

Attachments:

GoogleCodeExporter commented 9 years ago
Some progress :) but still doesnt work all the way.

during transponder scan
(time: 01:05) (time: 01:08) signal ok:
        S2 f = 12015 kHz H SR = 30000  3/4 0,35  8PSK

Now during channel-search

tune to: S2 f = 12015 kHz H SR = 30000  3/4 0,25  8PSK
(time: 05:06) ----------no signal----------
tune to: S2 f = 12015 kHz H SR = 30000  3/4 0,25  8PSK  (no signal)
(time: 05:08) ----------no signal----------

At least no "Tuning failed" :)

Original comment by kriss...@gmail.com on 28 Aug 2011 at 11:38

GoogleCodeExporter commented 9 years ago
> during transponder scan
> (time: 01:05) (time: 01:08) signal ok:
>        S2 f = 12015 kHz H SR = 30000  3/4 0,35  8PSK

Looks good here.

> Now during channel-search
>
> tune to: S2 f = 12015 kHz H SR = 30000  3/4 0,25  8PSK
> (time: 05:06) ----------no signal----------
> tune to: S2 f = 12015 kHz H SR = 30000  3/4 0,25  8PSK  (no signal)
> (time: 05:08) ----------no signal----------
>
> At least no "Tuning failed" :)

Interesting. Why it gets "not signal" if tuning is ok?

OK, I will go futher with my investigations :)

/Honza

Original comment by jpetrous on 29 Aug 2011 at 7:28

GoogleCodeExporter commented 9 years ago
One question:

> during transponder scan
> (time: 01:05) (time: 01:08) signal ok:
>        S2 f = 12015 kHz H SR = 30000  3/4 0,35  8PSK
>
> Now during channel-search
>
> tune to: S2 f = 12015 kHz H SR = 30000  3/4 0,25  8PSK
> (time: 05:06) ----------no signal----------
> tune to: S2 f = 12015 kHz H SR = 30000  3/4 0,25  8PSK  (no signal)
> (time: 05:08) ----------no signal----------

Why do you have ROLLOFF value different in tp scan (0.35 what is correct) and 
in channel search (0.25 what is wrong!)

/Honza

Original comment by jpetrous on 30 Aug 2011 at 11:15

GoogleCodeExporter commented 9 years ago
Actually dont know, what I did is use this command line
w_scan -f s -s S0W8 -D 0c

Original comment by kriss...@gmail.com on 30 Aug 2011 at 11:34

GoogleCodeExporter commented 9 years ago
Well, my today's experiments with w_scan have few thoughts:

1, latest version has much better results:
 I have d/l and installed latest one: w_scan version 20110702 (compiled for DVB API 5.1)

2, adding higher timing helps a bit too: -F -t 3
3, i can confirm that 8PSK scanning works:

tune to: S2 f = 11817 kHz V SR = 27500  3/4 0,35  8PSK 
(time: 40:22)   service = BBC Entertainment (SatelliteBG)
    service = Boomerang (SatelliteBG)
    service = Da Vinci (SatelliteBG)
    service = FLN (SatelliteBG)
    service = Travel Channel (SatelliteBG)
    service = 1 TVRUS (SatelliteBG)
    service = Planeta HD (SatelliteBG)
    service = Opentech (ITV Partner)

Of course there can be some issue when using w_scan (like it not waits enough 
for getting PAT/SDT/NIT tables or it parse some tables wrongly). Unfortunatelly 
I don't have any usb or pci dvb-s2 card here to check if same w_scan works 
better when used locally.

/Honza

Original comment by jpetrous on 31 Aug 2011 at 12:33

GoogleCodeExporter commented 9 years ago
Oh this last time I forgot about the high timing. so your vtunerd fixed the 
problem? Nice work :)

Original comment by kriss...@gmail.com on 31 Aug 2011 at 7:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
tune to: S2 f = 12015 kHz H SR = 30000  3/4 0,25  8PSK
(time: 07:19)   service = Discovery HD (Telenor)
        service = History Chnl HD (Telenor)
        service = History Chnl HD (Telenor)
        service = History Chnl HD (Telenor)
        service = Animal Planet HD (Telenor)
        service = Animal Planet HD (Telenor)
        service = BBC HD (Telenor)
        service = Discovery HD (Telenor)
        service = BBC HD (Telenor)

0,25 is still there, but it finds the channels, thanks for the help and really 
nice work done :)

Original comment by kriss...@gmail.com on 1 Sep 2011 at 12:10

GoogleCodeExporter commented 9 years ago
This issue was closed by revision bcd44ab8ac97.

Original comment by jpetrous on 1 Sep 2011 at 1:16

GoogleCodeExporter commented 9 years ago
Great. I have just added necessary fix.

Thx for reporting.

/Honza

Original comment by jpetrous on 1 Sep 2011 at 1:20