PDA

View Full Version : 香港 dmb-t/h USB 手指最新狀況 (Mygica D689, Techgear HDTVC etc..)



nise-designer
April 26th, 2013, 01:43 PM
Linux 最新 Kernel 3.9.0 + Ubuntu 12.10

https://lh6.googleusercontent.com/-q8VRzEjzo1k/UYGwKi46cpI/AAAAAAAAAAw/Zu7aeawLDbk/w762-h428-p-o/%25E8%259E%25A2%25E5%25B9%2595%25E6%2593%25B7%25E5 %259C%2596%25E5%25AD%2598%25E7%2582%25BA+2013-05-01+20%253A53%253A52.png

由於最新LinuxTV Frontend API (tuner) 由 DVBv3 upgrade DVBv5, 原有之TVBv3 scan channel 及轉台 software用唔到 (scan command etc..)
用scan後會出現
__tune_to_transponder:1910: ERROR: Setting frontend parameters failed: 22 Invalid argument
ERROR: initial tuning failed

dmesg會顯示
[34131.143241] dtv_property_cache_sync: doesn't know how to handle a DVBv3 call to delivery system 0

因而需要安裝最新之DVBv5 Tools

先移除舊dvb-tools
$ sudo apt-get autoremove dvb-tools

安裝最新之DVBv5 Tools
http://www.linuxtv.org/wiki/index.php/DVBv5_Tools

用 git 安裝最新版 (要先安裝幾個 Library: libjpeg-dev, libtool:, gettext etc..)
返回home
cd $home
$ git clone git://linuxtv.org/v4l-utils.git
$ cd v4l-utils
$ autoreconf -vfi
$ ./configure
$ make
$ sudo make install

主要用以下4個commands:
dvb-fe-tool : show dvbv5 frontend information
dvbv5-scan : Scan dvbv5 channel
dvbv5-zap : Control tuner to change channel
dvb-format-convert : dvbv3 to dvbv5 files conversion tool


$ dvb-fe-tool
INFO Device AltoBeam ATBM8830/8831 DMB-TH (/dev/dvb/adapter0/frontend0) capabilities:
INFO CAN_FEC_AUTO
INFO CAN_GUARD_INTERVAL_AUTO
INFO CAN_INVERSION_AUTO
INFO CAN_QAM_AUTO
INFO CAN_TRANSMISSION_MODE_AUTO
INFO DVB API Version 5.6, Current v5 delivery system: DTMB
INFO Supported delivery system:
INFO [DTMB]

$ dvb-fe-tool
INFO Device Legend Silicon LGS8913/LGS8GXX DMB-TH (/dev/dvb/adapter0/frontend0) capabilities:
INFO CAN_FEC_AUTO
INFO CAN_GUARD_INTERVAL_AUTO
INFO CAN_INVERSION_AUTO
INFO CAN_QAM_AUTO
INFO CAN_TRANSMISSION_MODE_AUTO
INFO DVB API Version 5.6, Current v5 delivery system: DTMB
INFO Supported delivery system:
INFO [DTMB]

Channel file 在 /usr/share/dvb/dvb-t/hk-HongKong

iCable Special Channel Values:
# TVB
T 674000000 8MHz AUTO NONE QAM64 8k 1/32 NONE
# HiDef TVB
T 690000000 8MHz AUTO NONE QAM64 8k 1/32 NONE
# ATV
T 698000000 8MHz AUTO NONE QAM64 8k 1/32 NONE

Scan Channel command

$ dvbv5-scan -I CHANNEL /usr/share/dvb/dvb-t/hk-HongKong

INFO Scanning frequency #1 674000000
Lock (0x1f) Signal= 91.02% C/N= 0.00% UCB= 0 postBER= 0
ERROR charset ISO-10646/UTF-8 not implemented
ERROR charset ISO-10646/UTF-8 not implemented
Service #0 (1) Jade channel 0.81.0
Service #1 (2) Pearl channel 0.84.1
Service #2 (11) Home channel 0.11.2
Service #3 (16) World channel 0.16.3
INFO Scanning frequency #2 690000000
Lock (0x1f) Signal= 91.02% C/N= 0.00% UCB= 0 postBER= 0
Service #0 (82) J2 channel 0.82.0
Service #1 (83) iNews channel 0.83.1
Service #2 (85) High Definition Jade channel 0.85.2
INFO Scanning frequency #3 698000000
Lock (0x1f) Signal= 91.02% C/N= 0.00% UCB= 0 postBER= 0
ERROR charset ISO-10646/UTF-8 not implemented
Service #0 (12) Asia channel 0.12.0
Service #1 (13) Classic channel 0.13.1
Service #2 (15) CCTV-1 channel 0.15.2
Service #3 (17) SZTV channel 0.17.3

Convert old hk-HongKong file to DVBV5 format
dvb-format-convert -I CHANNEL -O DVBV5 -s DTMB HK channel_dvbv5.conf

$ cat channel_dvbv5.conf
[CHANNEL]
DELIVERY_SYSTEM = DVBT
FREQUENCY = 674000000
BANDWIDTH_HZ = 8000000
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
MODULATION = QAM/64
TRANSMISSION_MODE = 8K
GUARD_INTERVAL = 1/32
HIERARCHY = NONE
INVERSION = AUTO


[CHANNEL]
DELIVERY_SYSTEM = DVBT
FREQUENCY = 690000000
BANDWIDTH_HZ = 8000000
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
MODULATION = QAM/64
TRANSMISSION_MODE = 8K
GUARD_INTERVAL = 1/32
HIERARCHY = NONE
INVERSION = AUTO


[CHANNEL]
DELIVERY_SYSTEM = DVBT
FREQUENCY = 698000000
BANDWIDTH_HZ = 8000000
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
MODULATION = QAM/64
TRANSMISSION_MODE = 8K
GUARD_INTERVAL = 1/32
HIERARCHY = NONE
INVERSION = AUTO

nise-designer
May 1st, 2013, 07:31 AM
dvbv5-zap -r -I DVBV5 -c dvb_channel.conf Jade

ERROR command VCHANNEL (261) not found during store
tuning to 674000000 Hz
video pid 841
dvb_set_pesfilter 841
audio pid 842
dvb_set_pesfilter 842
Lock (0x1f) Signal= 91.02% C/N= 0.00% UCB= 0 postBER= 0

dvbv5_channels.conf

[Jade]
VCHANNEL = 0.81.0
SERVICE_ID = 1
VIDEO_PID = 811
AUDIO_PID = 812 813
PID_06 = 817 816 815
FREQUENCY = 674000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[Pearl]
VCHANNEL = 0.84.1
SERVICE_ID = 2
VIDEO_PID = 841
AUDIO_PID = 842 843
PID_06 = 846 845
FREQUENCY = 674000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[Home ]
VCHANNEL = 0.11.2
SERVICE_ID = 11
VIDEO_PID = 111
AUDIO_PID = 112 113
PID_06 = 115 114
FREQUENCY = 674000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[World ]
VCHANNEL = 0.16.3
SERVICE_ID = 16
VIDEO_PID = 161
AUDIO_PID = 162 163
PID_06 = 165 164
FREQUENCY = 674000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[J2]
VCHANNEL = 0.82.0
SERVICE_ID = 82
VIDEO_PID = 821
AUDIO_PID = 822 823
PID_0b = 1001
PID_06 = 825
FREQUENCY = 690000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[iNews]
VCHANNEL = 0.83.1
SERVICE_ID = 83
VIDEO_PID = 831
AUDIO_PID = 832 833 834
PID_0b = 1001
FREQUENCY = 690000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[High Definition Jade]
VCHANNEL = 0.85.2
SERVICE_ID = 85
VIDEO_PID = 851
AUDIO_PID = 852 853
PID_0b = 1001
PID_06 = 857 856 855
FREQUENCY = 690000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[Asia]
VCHANNEL = 0.12.0
SERVICE_ID = 12
VIDEO_PID = 121
AUDIO_PID = 122 123
PID_06 = 125 124
FREQUENCY = 698000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[Classic]
VCHANNEL = 0.13.1
SERVICE_ID = 13
VIDEO_PID = 131
AUDIO_PID = 132 133
PID_06 = 135 134
FREQUENCY = 698000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[CCTV-1]
VCHANNEL = 0.15.2
SERVICE_ID = 15
VIDEO_PID = 151
AUDIO_PID = 152
FREQUENCY = 698000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT


[SZTV]
VCHANNEL = 0.17.3
SERVICE_ID = 17
VIDEO_PID = 171
AUDIO_PID = 172
FREQUENCY = 698000000
MODULATION = QAM/64
BANDWIDTH_HZ = 8000000
INVERSION = AUTO
CODE_RATE_HP = AUTO
CODE_RATE_LP = NONE
GUARD_INTERVAL = 1/32
TRANSMISSION_MODE = 8K
HIERARCHY = NONE
DELIVERY_SYSTEM = DVBT

esurfer11
May 26th, 2013, 04:55 PM
Dear sir,
I have recently bought a d690, googling for the driver i found that you have contributed the driver source code on sourceforge.
Could you be so kind to guide me through how to set up this stick on ubuntu 12.4?
much appreciated.
thanks

manatu
July 6th, 2013, 07:41 AM
nise-designer:

看了閣下的文章後,買了Mygica D690,download了demod_rtl2840的*.h 及*.c後,但仍未知要如何才能在13.04之下make install,可否寫一編從零開始詳細的教學文章,教教我等新丁如何才能在UBUNTU下看電視。多謝!

nise-designer
September 1st, 2013, 05:48 PM
本編文章只講及Mygica D689及之前之DMBTH手指因Kernel 升級dvbv5之應用問題,而D690現在是沒有driver,其實呢篇文章由頭至尾都無話D690可用, 不過如果想响linux睇DMBTH電視,見高登新翼有賣Contex手指($99),夠Gust可以博一 博,如果試到Work可以report下:

http://www.contex.hk/news_detail.php?id=15&page=1

如無意外係以前隻 Techgear

http://www.techgearworld.com/html/hdtvc_feature.html