sklnet / vtuner

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

Diseqc 4 ports support #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I wish to know if the 4-port diseqc is supported ?
i have installed vTunerd in mips device (cpu Broadcom BMIPS4350 BogoMIPS 
299Mhz, openwrt using eGlibc).
when i try scanning channels from vTunuerc x86_64 using scan-s2 i get log like:
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1944625 inversion:2 SR:22000000 FEC:5
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1959750 inversion:2 SR:22000000 FEC:5
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1943250 inversion:2 SR:22000000 FEC:5
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1961125 inversion:2 SR:22000000 FEC:5
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1941875 inversion:2 SR:22000000 FEC:5
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1962500 inversion:2 SR:22000000 FEC:5
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1940500 inversion:2 SR:22000000 FEC:5
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1951500 inversion:2 SR:22000000 FEC:5
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1951500 inversion:34 SR:22000000 FEC:13
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1952875 inversion:34 SR:22000000 FEC:13
vtunerd: [1094 ../../vtuner-dvb-3.c:151]  info: FE_SET_FRONTEND parameters: 
freq:1950125 inversion:34 SR:22000000 FEC:13

dmesg:
tbsqboxs2: tbsqboxs2_set_voltage 1
tbsqboxs2: tbsqboxs2_set_voltage 1
tbsqboxs2: tbsqboxs2_set_voltage 0
tbsqboxs2: tbsqboxs2_set_voltage 0

but still no signal in vdr(-1.7.22) or scan-s2

vTunerc x86_64:
vtunerc -v3 -f s2 -n 192.168.18.2:39305
vtunerc: vtuner client (vtunerc), part of vtuner project
Visit http://code.google.com/p/vtuner/ for more information
Copyright (C) 2009-11 Roland Mieslinger
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
vtunerc: Revision:b6fa0d2b133b/tip DVB:5.3 allow:5.x NetProto:2 MsgSize:96, 
Debug:3
vtunerc: [3111 ../../vtunerc.c:452]  info: added frontend mode DVB-S2 as mode 
0, searching for tuner types 9
vtunerc: [3111 ../../vtunerc.c:477]  info: direct connection: 
host='192.168.18.2' port=39305
vtunerc: [3111 ../../vtunerc.c:529]  warn: Can't create pid file /dev/vtunerc0 
- Permission denied
vtunerc: [3111 ../../vtunerc.c:586]  info: no server connected. discover thread 
is 0 (DWS_IDLE:0, DWS_RUNNING:1)
vtunerc: [3111 ../../vtunerc.c:588]  info: changing frontend mode to DVB-S2
vtunerc: [3111 ../../vtunerc.c:617]  info: Start discover worker for device 
type 9 groups ffff
vtunerc: [3111 ../../vtunerc.c:214]  info: starting discover thread
vtunerc: [3111 ../../vtunerc.c:258]  info: Sending direct discover message for 
device types 9
vtunerc: [3111 ../../vtunerc.c:272]  info: Received discover message from 
192.168.18.2 proto2 control 56072 data 47552
vtunerc: [3111 ../../vtunerc.c:637]  info: connect control socket to 
192.168.18.2:56072
vtunerc: [3111 ../../vtunerc.c:654]  info: connected data socket to 
192.168.18.2:47552

please note, scan-s2/w_scan work fine if i scan the channels on MIPS host(where 
vtunerd is installed).

and also VDR work too on the host mips with same diseqc configuration:

S19.2E 11700 V 9750 t v [E0 10 38 F0] W15 t
S19.2E 99999 V 10600 t v [E0 10 38 F0] W15 T
S19.2E 11700 H 9750 t V [E0 10 38 F0] W15 t
S19.2E 99999 H 10600 t V [E0 10 38 F0] W15 T

S28.2E 11700 V 9750 t v [E0 10 38 F4] W15 t
S28.2E 99999 V 10600 t v [E0 10 38 F4] W15 T
S28.2E 11700 H 9750 t V [E0 10 38 F4] W15 t
S28.2E 99999 H 10600 t V [E0 10 38 F4] W15 T

S13.0E 11700 V 9750 t v [E0 10 38 F8] W15 t
S13.0E 99999 V 10600 t v [E0 10 38 F8] W15 T
S13.0E 11700 H 9750 t V [E0 10 38 F8] W15 t
S13.0E 99999 H 10600 t V [E0 10 38 F8] W15 T

S4.8E 11700 V 9750 t v [E0 10 38 FC] W15 t
S4.8E 99999 V 10600 t v [E0 10 38 FC] W15 T
S4.8E 11700 H 9750 t V [E0 10 38 FC] W15 t
S4.8E 99999 H 10600 t V [E0 10 38 FC] W15 T

(with vTunerc) And lately I noticed that when I scan the channels using w_scan 
of 13.0E, I get a few channels of 4.8E !!

w_scan -f s -D 2c -T 1 -R 0 -O 0 -E 0 -s S13E0 -o 7
Info: using DVB adapter auto detection.
    /dev/dvb/adapter1/frontend0 -> DVB-S "vTuner proxyFE DVB-S2": very good :-))
Using DVB-S frontend (adapter /dev/dvb/adapter1/frontend0)
-_-_-_-_ Getting frontend capabilities-_-_-_-_ 
Using DVB API 5.3
frontend vTuner proxyFE DVB-S2 supports
INVERSION_AUTO
DVB-S
DVB-S2
using LNB "UNIVERSAL"
using DiSEqC committed switch 2
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 
(time: 00:00) 
(time: 00:04) 
(time: 00:07) 
(time: 00:11) 
(time: 00:15) 
(time: 00:19) 
(time: 00:23) 
(time: 00:27) (time: 00:31) signal ok:
    S2 f = 10834 kHz V SR = 27500  3/4 0,35  8PSK
    new transponder:
       (S2 f = 12265 kHz V SR = 27500  3/4 0,25  8PSK)
Info: NIT(actual) filter timeout
(time: 00:46) 
(time: 00:50) (time: 00:54) signal ok:
    S  f = 10873 kHz V SR = 27500  3/4 0,35  QPSK
Info: NIT(actual) filter timeout
...

I give you more details about apps:
vtunerc.ko module and apps compiled from 
http://code.google.com/p/vtuner/source/checkout?repo=apps , 
http://code.google.com/p/vtuner/source/checkout?repo=linux-driver source on 
x86_64 debian squeeze kernel 3.0.4-vs2.3.1-pre10.1(vserver) gcc 4.4.5
vtunerc app compiled in debian squeeze i386 using openwrt toolchain with eglibc 
TARGET=brcm63xx kernel 2.6.37.6 gcc-linaro-4.5-2011.05-0

Thanks.

Original issue reported on code.google.com by info...@gmail.com on 5 May 2012 at 2:32

GoogleCodeExporter commented 9 years ago
Sorry, I correct a mistake
with "w_scan -f s -D 2c -T 1 -R 0 -O 0 -E 0 -s S13E0 -o 7"
i get few channels from S13E0 (not from 4.8E) with incorrect parameter ?
over vtunerc i get this:
Zone Reality;TP:11319:vC34M2O0S0:S13E:27500:519:719=pol:0:500:15919:318:600:0
Zone Romantica;TP:11319:vC34M2O0S0:S13E:27500:520:720=pol:0:500:15920:318:600:0
HBO HD;TP:11319:vC34M2O0S0:S13E:27500:525:725=pol,825=eng:0:500:15925:318:600:0

without vtunerc using direct dvbs driver:
Zone Reality;TP:10911:vC34M5O35S1:S13E:27500:519:719:0:500:15919:318:12000:0
Zone Romantica;TP:10911:vC34M5O35S1:S13E:27500:520:720:0:500:15920:318:12000:0
HBO HD;TP:10911:vC34M5O35S1:S13E:27500:525:725,825=pol:0:500:15925:318:12000:0
Cinemax 2 
HD;TP:10911:vC34M5O35S1:S13E:27500:526:726,826=pol:0:500:15926:318:12000:0

Original comment by info...@gmail.com on 5 May 2012 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
is not diseqc problem, because S2 channels work.
Astra S19.2E:
ZDF 
HD;ZDFvision:11361:hC23M5O35S1:S19.2E:22000:6110=27:6120=deu@3,6121=mis@3,6123=m
ul@3;6122=deu@106:6130;6131=deu:0:11110:1:1011:0
Astra S28.2E:
BBC 
HD;BSkyB:10847:VC89M2O25S1:S28.2E:23000:5500=27:5502=NAR@3;5501=eng@106:5503;550
4=eng:0:6940:2:2050:0

vtunerd log:
Jan  1 00:54:29 dvb user.info vtunerd: [1054 ../../vtuner-dvb-3.c:151]  info: 
FE_SET_FRONTEND parameters: freq:1097000 inversion:38 SR:23000000 FEC:15
Jan  1 00:54:29 dvb user.info sysinit: vtunerd: [1054 ../../vtuner-dvb-3.c:151] 
 info: FE_SET_FRONTEND parameters: freq:1097000 inversion:38 SR:23000000 FEC:15
Jan  1 00:54:30 dvb user.info sysinit: vtunerd: [1054 ../../vtuner-dvb-3.c:139] 
 warn: FE_GET_FRONTEND failed. It seems your DVB driver has incomplete 
implementation.
Jan  1 00:54:30 dvb user.warn vtunerd: [1054 ../../vtuner-dvb-3.c:139]  warn: 
FE_GET_FRONTEND failed. It seems your DVB driver has incomplete implementation.

Original comment by info...@gmail.com on 6 May 2012 at 9:14

GoogleCodeExporter commented 9 years ago
Try to add more wait time - also before DiSEqC bytes, like:

S19.2E  11700 V  9750  t v W15 [E0 10 38 F0] W15 t
S19.2E  99999 V 10600  t v W15 [E0 10 38 F1] W15 T
S19.2E  11700 H  9750  t V W15 [E0 10 38 F2] W15 t
S19.2E  99999 H 10600  t V W15 [E0 10 38 F3] W15 T

or 

S19.2E  11700 V  9750  t v W30 [E0 10 38 F0] W30 t
S19.2E  99999 V 10600  t v W30 [E0 10 38 F1] W30 T
S19.2E  11700 H  9750  t V W30 [E0 10 38 F2] W30 t
S19.2E  99999 H 10600  t V W30 [E0 10 38 F3] W30 T

Original comment by ales.ju...@gmail.com on 7 May 2012 at 9:46

GoogleCodeExporter commented 9 years ago
same problem, only S2 channels are working. all others... no signal
I think the problem is not coming from diseqc, because if I zap "S2 channels" 
on another satellite , it works.

Thanks.

Original comment by info...@gmail.com on 7 May 2012 at 10:13

GoogleCodeExporter commented 9 years ago
Could you provide more info about your server hw? There seems to be problems in 
signaling 

-info: FE_SET_FRONTEND parameters: freq:1097000 inversion:38 SR:23000000 FEC:15

the FEC value 15 and inversion of 38 are not correct.

Original comment by ales.ju...@gmail.com on 8 May 2012 at 7:53

GoogleCodeExporter commented 9 years ago
here hardware info 
Linux version 2.6.37.6 (moi@srv) (gcc version 4.5.4 20110505 (prerelease) 
(Linaro GCC 4.5-2011.05-0) ) #2 Sun Apr 29 11:27:30 CEST 2012
Detected Broadcom 0x6358 CPU revision a1
CPU frequency is 300 MHz
32MB of RAM installed
registering 40 GPIOs
board_bcm963xx: Boot address 0xbe000000
board_bcm963xx: CFE version: 1.0.37-12.1
bootconsole [early0] enabled
CPU revision is: 0002a010 (Broadcom BMIPS4350)
board_bcm963xx: board name: NB4-FXC-r2
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802a8370, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd 
console=ttyS0,115200
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
Memory: 29372k/32768k available (2285k kernel code, 3396k reserved, 372k data, 
164k init, 0k highmem)
NR_IRQS:128
Calibrating delay loop... 299.00 BogoMIPS (lpj=598016)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
pci 0000:00:01.0: [14e4:4318] type 0 class 0x000280
pci 0000:00:01.0: reg 10: [mem 0x00000000-0x00001fff]
pci 0000:00:01.0: BAR 0: assigned [mem 0x30000000-0x30001fff]
pci 0000:00:01.0: BAR 0: set to [mem 0x30000000-0x30001fff] (PCI address 
[0x30000000-0x30001fff])
Switching to clocksource MIPS
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:01.0 to 64
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x0D, vendor 0x4243)
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x09, vendor 0x4243)
ssb: Core 2 found: PCI (cc 0x804, rev 0x0C, vendor 0x4243)
ssb: Core 3 found: PCMCIA (cc 0x80D, rev 0x07, vendor 0x4243)
ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PCI: CLS 0 bytes, default 32
audit: initializing netlink socket (disabled)
type=2000 audit(0.320:1): initialized
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 
2001-2006 Red Hat, Inc.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0100 (irq = 10) is a bcm63xx_uart
console [ttyS0] enabled, bootconsole disabled
bcm963xx-flash bcm963xx-flash.0: 0x02000000 at 0x1e000000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 
Chip ID 0x0022cb
bcm963xx: Found an alias at 0x800000 for the chip at 0x0
bcm963xx: Found an alias at 0x1000000 for the chip at 0x0
bcm963xx: Found an alias at 0x1800000 for the chip at 0x0
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.1.
number of CFI chips: 1
bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx-flash bcm963xx-flash.0: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6 and board type 96358VW
bcm963xx_flash: Partition 0 is CFE offset 0 and length 10000
bcm963xx_flash: Partition 1 is kernel offset 10100 and length eff00
bcm963xx_flash: Partition 2 is rootfs offset 100000 and length 6f0000
bcm963xx_flash: Partition 3 is nvram offset 7f0000 and length 10000
bcm963xx_flash: Partition 4 is linux offset 10000 and length 7e0000
bcm963xx_flash: Spare partition is 530000 offset and length 2c0000
Creating 5 MTD partitions on "bcm963xx":
0x000000000000-0x000000010000 : "CFE"
0x000000010100-0x000000100000 : "kernel"
mtd: partition "kernel" must either start or end on erase block boundary or be 
smaller than an erase block -- forcing read-only
0x000000100000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=520000, len=2D0000 
0x000000520000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "nvram"
0x000000010000-0x0000007f0000 : "linux"
bcm63xx_enet MII bus: probed
bcm63xx-wdt bcm63xx-wdt.0:  started, timer margin: 30 sec
.....
dvb-usb: found a 'TBS QBOXS2 DVBS2 USB2.0' in cold state, will try to load a 
firmware
dvb-usb: downloading firmware from file 'dvb-usb-tbsqbox-id5928.fw'
tbsqboxs2: start downloading TBSQBOX firmware
dvb-usb: found a 'TBS QBOXS2 DVBS2 USB2.0' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (TBS QBOXS2 DVBS2 USB2.0)
dvb-usb: MAC address: ff:ff:ff:ff:ff:ff
QBOXS2: CX24116 attached.
DVB: registering adapter 0 frontend 0 (Conexant CX24116/CX24118)...
input: IR-receiver inside an USB DVB receiver as 
/devices/platform/bcm63xx_ehci.0/usb1/1-1/input/input1
dvb-usb: schedule remote query interval to 150 msecs.
dvb-usb: TBS QBOXS2 DVBS2 USB2.0 successfully initialized and connected.
usbcore: registered new interface driver tbsqboxs2
....

cat /proc/cpuinfo 
system type     : bcm63xx/NB4-FXC-r2 (0x6358/0x00A1)
processor       : 0
cpu model       : Broadcom BMIPS4350 V1.0
BogoMIPS        : 299.00
wait instruction    : yes
microsecond timers  : yes
tlb_entries     : 32
extra interrupt vector  : yes
hardware watchpoint : no
ASEs implemented    :
shadow register sets    : 1
core            : 0
VCED exceptions     : not available
VCEI exceptions     : not available

uname -a
Linux dvb 2.6.37.6 #2 Sun Apr 29 11:27:30 CEST 2012 mips GNU/Linux

lsmod |grep dvb
dvb_usb_tbsqboxs2       6192  0 
dvb_usb                16272  1 dvb_usb_tbsqboxs2
dvb_core               68416  1 dvb_usb
rc_core                12384  1 dvb_usb
i2c_core               11904  4 dvb_usb_tbsqboxs2,cx24116,dvb_usb,i2c_dev
usbcore                97984  6 
dvb_usb_tbsqboxs2,dvb_usb,usb_storage,ohci_hcd,ehci_hcd
input_core             19440  6 dvb_usb,rc_core,gpio_buttons,input_polldev

Original comment by info...@gmail.com on 8 May 2012 at 10:27

GoogleCodeExporter commented 9 years ago
IS NOT "server hw" problem. tested today with i686 and same problem. (only S2 
channels work)
and NOT vTuner fault, because is work fine with another DVB device (pinnacle 
PCTV 400e dvb-ttusb2).
"TBS QBOXS2 DVBS2 USB2.0" hardware not work with vTuner.

You can close this issue.

Original comment by info...@gmail.com on 9 May 2012 at 1:08

GoogleCodeExporter commented 9 years ago
Strange. I can't understand why it works for some and nope for other.
Seems really like the device has something not fully DVB API compliant.

OK, closing

Original comment by jpetrous on 12 May 2012 at 8:42