WeTek Community Forum

[SOLVED] DVB tools and applications

graugansgraugans Posts: 18WeTek Community Member
After building the dvb-apps from http://linuxtv.org/ I get an error when I try to scan DVB channels.
scan /usr/share/dvb/dvb-s/Astra-19.2E

scanning /usr/share/dvb/dvb-s/Astra-19.2E
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adap[  138.320724@0] i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO) token 0, master_no(1) 300K addr 0xc
[  138.329932@0] i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO) token 0, master_no(1) 300K addr 0xc
[  138.338682@0] i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO) token 0, master_no(1) 300K addr 0xc
[  138.347312@0] i2c i2c-1: i2c wr failed=-11
ter0/demux0'
[  138.369831@0] i2c i2c-1: Uploading demod firmware (dvb-fe-avl6211.fw)...
[  139.753054@1] i2c i2c-1: AVL6211+AV2011 init OK
initial transponder 12551500 V 22000000 5
>>> tune to: 12551:v:0:22000
DVB-S IF freq is 1951500
__tune_to_transponder:1910: ERROR: Setting frontend parameters failed: 95 Operation not supported
>>> tune to: 12551:v:0:22000
DVB-S IF freq is 1951500
__tune_to_transponder:1910: ERROR: Setting frontend parameters failed: 95 Operation not supported
ERROR: initial tuning failed
dumping lists (0 services)
Done.

After enabling dynamic debug in kernel I got this messages in dmesg
[  138.318029@0] [1577] dvb_core:dvb_frontend_open:3053: wetek-dvb dvb.8: dvb_frontend_open:
[  138.318048@0] [1577] dvb_core:dvb_frontend_start:1123: wetek-dvb dvb.8: dvb_frontend_start:
[  138.318194@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (61)
[  138.318211@0] [1578] dvb_core:dvb_frontend_thread:904: wetek-dvb dvb.8: dvb_frontend_thread:
[  138.318223@0] [1578] dvb_core:dvb_frontend_init:409: wetek-dvb dvb.8: dvb_frontend_init: initialising adapter 0 frontend 0 (Availink AVL6211+AV2011 DVB-S/S2)...
[  138.320724@0] i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO) token 0, master_no(1) 300K addr 0xc
[  138.329932@0] i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO) token 0, master_no(1) 300K addr 0xc
[  138.338682@0] i2c i2c-1: [aml_i2c_xfer] error ret = -5 (-EIO) token 0, master_no(1) 300K addr 0xc
[  138.347312@0] i2c i2c-1: i2c wr failed=-11
[  138.351371@0] [1578] wetekplay:avl6211_i2c_write:272: i2c i2c-1: avl6211_i2c_write: failed=-121
[  138.351381@0] [1578] wetekplay:avl6211_i2c_write32:342: i2c i2c-1: avl6211_i2c_write32: failed=-121
[  138.369831@0] i2c i2c-1: Uploading demod firmware (dvb-fe-avl6211.fw)...
[  139.753054@1] i2c i2c-1: AVL6211+AV2011 init OK
[  139.756191@0] [1577] dvb_core:dvb_frontend_ioctl_legacy:2680: wetek-dvb dvb.8: dvb_frontend_ioctl_legacy: current delivery system on cache: 5, V3 type: 0
[  139.760387@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (66)
[  139.760407@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (67)
[  139.804638@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (63)
[  139.994979@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (65)
[  140.055022@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (66)
[  140.106299@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (76)
[  140.106422@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (66)
[  140.107016@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (67)
[  140.144628@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (63)
[  140.334978@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (65)
[  140.394909@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (66)
[  140.446167@0] [1577] dvb_core:dvb_frontend_ioctl:2341: wetek-dvb dvb.8: dvb_frontend_ioctl: (76)
[  140.446243@0] [1577] dvb_core:dvb_frontend_release:3149: wetek-dvb dvb.8: dvb_frontend_release:

After reading commit messages in OpenElec I created some w_scan recipe and tried with w_scan
root@wetekplay:~# w_scan -f s -s S19E2 >> /tmp/channels
w_scan -f s -s S19E2 
w_scan version 20141122 (compiled for DVB API 5.10)
using settings for 19.2 east Astra 1F/1G/1H/1KR/1L
scan type SATELLITE, channellist 67
output format vdr-2.0
WARNING: could not guess your codepage. Falling back to 'UTF-8'
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
        /dev/dvb/adapter0/frontend0 -> SATELLITE "Availink AVL6211+AV2011 DVB-S/S2": very good :-))

Using SATELLITE frontend (adapter /dev/dvb/adapter0/frontend0)
-_-_-_-_ Getting frontend capabilities-_-_-_-_ 
Using DVB API 5.10
frontend 'Availink AVL6211+AV2011 DVB-S/S2' supports
INVERSION_AUTO
DVB-S
DVB-S2
FREQ (0.95GHz ... 2.15GHz)
SRATE (0.800MSym/s ... 50.000MSym/s)
using LNB "UNIVERSAL"
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 
trying 'S2 f = 10729 kHz V SR = 22000  2/3 0,35  8PSK  (0:0:0)'
(time: 00:00.010) [  343.440153@1] dtv_set_frontend
[  343.443265@1] i2c i2c-1: avl6211_set_frontend: delivery_system=6 frequency=979000 symbol_rate=22000000
[  343.509544@1] i2c i2c-1: BF is 123,BW is 20500
[  344.089805@1] i2c i2c-1: Tuner successfully lock!
[  344.189798@1] i2c i2c-1: Service locked!!!
[  344.193842@0] i2c i2c-1: avl6211_set_frontend: delivery_system=6 frequency=979000 symbol_rate=22000000
[  344.489653@0] i2c i2c-1: BF is 123,BW is 20500
[  345.069790@0] i2c i2c-1: Tuner successfully lock!
[  345.149796@0] i2c i2c-1: Service locked!!!
[  345.199802@0] 1----!!!!!!!!!!!!!!!!!!!event s=31,fepriv->status is 0!!!!!!!!!!!!!!!!!
        signal ok:      S2 f = 10729 kHz V SR = 22000  2/3 0,35  8PSK  (0:0:0)
[  345.245802@1] wetek-dvb dvb.8: start_feed_dmx0
[  345.250938@1] wetek-dvb dvb.8: FLUSH FIFO0
[  345.255016@1] wetek-dvb dvb.8: FLUSH ok
[  345.258835@1] wetek-dvb dvb.8: FIFO0<->0
        S2 f = 10729 kHz V SR = 22000  2/3 0,35  8PSK  (0:0:0) : updating transport_stream_id: ->[  345.462487@1] wetek-dvb dvb.8: stop_feed_dmx0
 (0:0:1050)
[  345.469523@1] wetek-dvb dvb.8: FLUSH FIFO0
[  345.474726@1] wetek-dvb dvb.8: FLUSH ok
[  345.479445@1] wetek-dvb dvb.8: start_feed_dmx0
[  345.482972@1] wetek-dvb dvb.8: FLUSH FIFO0
[  345.487050@1] wetek-dvb dvb.8: FLUSH ok
[  345.490869@1] wetek-dvb dvb.8: FIFO0<->0
        S2 f = 10729 kHz V SR = 22000  2/3 0,35  8PSK  (0:0:1050) : updating network_id -> (0:1:1050)
        new transponder: (S  f = 11720 kHz H SR = 27500  3/4 0,35  QPSK  (133:1:3)) 0x4043
        new transponder: (S  f = 12480 kHz V SR = 27500  3/4 0,35  QPSK  (133:1:33)) 0x4043
        new transponder: (S  f = 12032 kHz H SR = 27500  3/4 0,35  QPSK  (133:1:4)) 0x4043
        new transponder: (S  f = 12461 kHz H SR = 27500  3/4 0,35  QPSK  (133:1:5)) 0x4043
        new transponder: (S2 f = 11915 kHz H SR = 27500 9/10 0,35  QPSK  (133:1:6)) 0x4043
        new transponder: (S  f = 12149 kHz H SR = 27500  3/4 0,35  QPSK  (133:1:7)) 0x4043
        new transponder: (S2 f = 11553 kHz H SR = 22000  3/4 0,35  8PSK  (133:1:8)) 0x4043
        new transponder: (S2 f = 11171 kHz H SR = 22000  3/4 0,35  8PSK  (133:1:9)) 0x4043
        new transponder: (S2 f = 11112 kHz H SR = 22000  2/3 0,35  8PSK  (1:1:1043)) 0x4043
        new transponder: (S  f = 12071 kHz H SR = 27500  3/4 0,35  QPSK  (133:1:1)) 0x4043
        new transponder: (S2 f = 11332 kHz H SR = 22000  3/4 0,35  8PSK  (133:1:10)) 0x4043
        new transponder: (S  f = 11244 kHz H SR = 22000  5/6 0,35  QPSK  (1:1:1003)) 0x4043
        new transponder: (S2 f = 11259 kHz V SR = 22000  2/3 0,35  8PSK  (1:1:1004)) 0x4043
        new transponder: (S2 f = 11273 kHz H SR = 22000  2/3 0,35  8PSK  (1:1:1005)) 0x4043
        new transponder: (S2 f = 11288 kHz V SR = 22000  2/3 0,20  8PSK  (1:1:1006)) 0x4043

Is there any chance to get the dvb apps up and working?

To whom it may concern the w_scan recipe....
@
+SUMMARY = "w_scan is an ATSC/DVB-C/S/T channel scanner that doesn't require an initial frequency table"
+HOMEPAGE = "http://wirbel.htpc-forum.de/w_scan/index2.html";
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a"
+
+SRC_URI = "http://wirbel.htpc-forum.de/w_scan/w_scan-${PV}.tar.bz2"
+SRC_URI[md5sum] = "da0f190bee696a02bf030fc01c0706e8"
+SRC_URI[sha256sum] = "b6d7c9ab997c53a0b0d92e8390f313cc3b82ee8ece1756b4e526119fd5ba09b4"
+
+S = "${WORKDIR}/w_scan-${PV}"
+
+inherit autotools
+
+FILES_${PN} += "${datadir}"

Comments

  • AdministratorAdministrator Posts: 355Administrator - WeTek Community Manager, WeTek Community Member
    Re: DVB tools and applications

    Hello graugans,

    This probably happened because you compiled them with different header files or old amlogic kernel.

    Please use latest kernel plus all patches from OE, and be sure that your compiler is using right dvb header files.
  • graugansgraugans Posts: 18WeTek Community Member
    Re: DVB tools and applications

    I am using latest kernel based on OpenElec sources and patches. At the moment I rebuild everything top use kernel 3.10 headers. Previously yocto had been using 3.18 headers.

    I hope this will fix those issues.

    BTW a official wetek kernel + u-boot repository would be nice. This would make thing a bit easier. Only one point to check for updates.
  • AdministratorAdministrator Posts: 355Administrator - WeTek Community Manager, WeTek Community Member
    Re: DVB tools and applications
    graugans wrote:
    I am using latest kernel based on OpenElec sources and patches. At the moment I rebuild everything top use kernel 3.10 headers. Previously yocto had been using 3.18 headers.

    I hope this will fix those issues.

    BTW a official wetek kernel + u-boot repository would be nice. This would make thing a bit easier. Only one point to check for updates.

    Sure, we are prepairing it. See your Private Messages :)
  • graugansgraugans Posts: 18WeTek Community Member
    Re: DVB tools and applications

    After switching to v4l-utils everything works as expected. It looks like the dvb-apps tools are a bit outdated. For Astra 19.2E you can use the following initial scan file:
    # Astra 19.2E SDT info service transponder
    # freq pol sr fec
    S 12551500 V 22000000 5/6
    

    After this a scan is started with this command:
    echo "S 12551500 V 22000000 5/6" > /tmp/initial
    dvbv5-scan -lUNIVERSAL -ICHANNEL /tmp/initial
    

    I've updated meta-amlogic with latest dvb-utils recipe from delfi
  • AdministratorAdministrator Posts: 355Administrator - WeTek Community Manager, WeTek Community Member
    Re: DVB tools and applications

    @graugans

    Excellent.
Sign In or Register to comment.
© Copyright 2014 - Creative Dreams | Powered by Vanilla
All times are UTC