Application of Satellite TV card in linux

Source: Internet
Author: User
Tags hex code
The application of satellite TV card in linux-Linux general technology-Linux technology and application information. The following is a detailed description. Hardware environment:
Cpu AMD2500 +
Graphics card: Ming Xuan ti4200
Hard drive: Seagate 120 GB
RAM: kingmax512 * 2
DVB-S card TwinHan VP-1020A (shuanghan 1020 card red Edition)
Zhongwei 60cm eccentric pot
Ask 11300 receive Agials146E for a single vibration high frequency head (connect to lnb1 in quad-cut mode)
Byeongchang 9750 10600 dual vibration high frequency head receiving ApStar-1 (connected to a four-cut lnb2)
Good news

Software environment:
System: FC3
Kernel: 2.6.16.15.kis
Required software:
Linux-2.6.16.15.tar.bz2
Linuxtv-dvb-apps-1.1.0.tar.tar
Xine-lib-cvs-20060319194500.tar.tar
Xine-ui-cvs-20060319194500.tar.tar
Vdr-1.3.38.tar.bz2
Vdr-xine-0.7.9.tgz
Vdr-femon-0.9.6.tgz (available)
Vdr-sc-0.5.6.tar.gz (available)
Streamdev.tar (optional)
VDRMediaClient.0.0.0.7beta.zip (windows satellite TV client)

1. recompile the kernel so that it supports DVB-S cards
Download new kernel
Wget http://www.kernel.org/pub/linux/... x-2.6.16.15.tar.bz2
Music linux-2.6.15.4.tar.bz2/usr/src
Cd/usr/src
Tar-jxvf linux-2.6.16.15.tar.bz2
Cd linux-2.6.16.15
Make xconfig
Configure the kernel
Device Drivers --> Multimedia devices --> Video For Linux --> BT848 Video For Linux (module)
Device Drivers --> Digital Video Broadcasting Devices --> DVB For Linux --> DVB Core Support (module)
Device Drivers --> Digital Video Broadcasting Devices --> DVB For Linux --> BT8xx based PCI cards (module)
Save and exit
Make
Make modules_install
Make install
Reboot

Select new kernel to System

Ii. Permission setting for loading devices in the 1020 card module
Modprobe bttv i2c_hw = 1 card = 0x71 (0X68 for a blue 1020 card)
Modprobe dvb-bt8xx
Modprobe dst
Less/var/log/messages
After the module is loaded, the following output information is displayed:
May 16 19:48:20 kis kernel: bttv: driver version 0.9.16 loaded
May 16 19:48:20 kis kernel: bttv: using 8 buffers with 2080 k (520 pages) each for capture
May 16 19:48:20 kis kernel: bttv: Bt8xx card found (0 ).
May 16 19:48:20 kis kernel: bttv0: Bt878 (rev 17) at 0000: 01: 0a. 0, irq: 11, latency: 32, mmio: 0xd8000000
May 16 19:48:20 kis kernel: bttv0: detected: Twinhan VisionPlus DVB [card = 113], PCI subsystem ID is 1822: 0001
May 16 19:48:20 kis kernel: bttv0: using: Twinhan DST + clones [card = 113, insmod option]
May 16 19:48:20 kis kernel: input: i2c IR (Hauppauge) as/class/input/input4
May 16 19:48:20 kis kernel: ir-kbd-i2c: i2c IR (Hauppauge) detected at i2c-1/1-001a/ir0 [bt878 #0 [hw]
May 16 19:48:20 kis kernel: bttv0: using tuner = 4
May 16 19:48:20 kis kernel: bttv0: add subdevice "dvb0"
May 16 19:48:20 kis kernel: bt878: AUDIO driver version 0.0.0 loaded
May 16 19:48:20 kis kernel: bt878: Bt878 AUDIO function found (0 ).
May 16 19:48:20 kis kernel: bt878_probe: card id = [0x11822], [Twinhan VisionPlus DVB] has DVB functions.
May 16 19:48:20 kis kernel: bt878 (0): Bt878 (rev 17) at 01: 0a. 1, irq: 11, latency: 32, memory: 0xd8001000
May 16 19:48:20 kis kernel: DVB: registering new adapter (bttv0 ).
May 16 19:48:20 kis kernel: dst_get_device_id: Recognise [DST-03T]
May 16 19:48:20 kis kernel:
May 16 19:48:21 kis kernel: DST type flags: 0x2 ts204 0x4 symdiv 0x10 firmware version = 2
May 16 19:48:21 kis kernel: dst_get_mac: MAC Address = [00: 08: ca: 68: 03: 00]
May 16 19:48:21 kis kernel: DVB: registering frontend 0 (DST DVB-S )...

After the module is correctly loaded, it will appear under/dev /.
/Dev/dvb0.demux0
/Dev/dvb0.dvr0
/Dev/dvb0.frontend0
/Dev/dvb0.net0
The above four device files.
However, the default file path of the device is
/Dev/dvb/adapter0/demux0
/Dev/dvb/adapter0/dvr0
/Dev/dvb/adapter0/frontend0
/Dev/dvb/adapter0/net0
To make the above two software work normally, we need to make a soft connection.
Mkdir-P/dev/dvb/adapter0
Cd vb/adapter0
Ln-s/dev/dvb0.frontend0/dev/dvb/adapter0/frontend0
Ln-s/dev/dvb0.demux0/dev/dvb/adapter0/demux0
Ln-s/dev/dvb0.dvr0/dev/dvb/adapter0/dvr0
Ln-s/dev/dvb0.net0/dev/dvb/adapter0/net0
Modify the access permission of the device so that normal users can access the device.
Chmod-R 666/dev/dvb0 .*
Chmod-R 666/dev/dvb

3. Prepare satellite channel parameters and scan programs.
Cd/usr/local
Wget http://www.linuxtv.org/download/... -1.1.0.tar.bz2
Tar-jxvf linuxtv-dvb-apps-1.1.0.tar.bz2
Cd linuxtv-dvb-apps-1.1.0
Make
Cd util/scan/dvb-s
Touch Agials146E
Touch ApStar-1
Gedit Agials146E
Edit the Agials146E file and add the following satellite channel parameters: You can query satellite channel parameters at http://www.asiatvro.com/channel/index.asp. Note that the following parameters are for ku high-frequency headers. Modify the c header by yourself.
S 12301000 H 25600000 5/6
S 12501000 H 30000000 5/6
S 12540000 H 25600000 5/6
S 12541000 V 26000000 5/6
S 12581000 H 25600000 5/6
S 12661000 H 25600000 5/6
Save and exit.
Gedit ApStar-1
Edit the ApStar-1 file to add the following satellite channel parameters: satellite channel parameters can be queried at http://www.asiatvro.com/channel/index.asp. Note that the following parameters are for ku high-frequency headers. Modify the c header by yourself.
S 12302000 V 30000000 5/6
S 12354000 V 43000000 3/4
S 12396000 V 14320000 5/6
S 12425000 V 30000000 5/6
S 12490000 V 21600000 3/4
S 12538000 V 41248000 1/2
Save and exit.
Cd ..
. /Scan-l 11300-x 0-s 0 dvb-s/Agials146E>/home/kis/channels. conf (if set correctly, you can hear the sound of the 1020-card Relay)
# The-l parameter is of the high-frequency header type. You can use the./scan-l help command to check it. Because the single-vibration 11300 of my high-frequency head is-l 11300.
Cd/home/kis
Cp channels. conf./. xine
D/usr/local/linuxtv-dvb-apps-1.1.0/util/szap
./Szap-l 11300-c/home/kis/channels. conf "JCTV"-r (Lock channel, JCTV is the channel name in channels. conf)
Xine stdin: // mpeg2 </dev/dvb0.dvr0 (you can see JCTV)
Or
Gmplayer/dev/dvb0.dvr0
If you can see the TV, it means that the 1020 card can be used normally.

4. Install the vitamin D service
Cd/
Mkdir video
Chmod 777 video
Cd/usr/local/src
Wget http://home.vrweb.de /~ Xine-lib-cvs-20060319194500.tar.bz2/rnissl
Wget http://home.vrweb.de /~ Xine-ui-cvs-20060319194500.tar.bz2/rnissl
Wget http://home.vrweb.de /~ Vdr-xine-0.7.9.tgz/rnissl
Wget ftp://ftp.cadsoft.de/vdr/Developer/vdr-1.3.38.tar.bz2
Wget http://vdr.bluox.org/download/vdr-sc/vdr-sc-0.5.6.tar.gz
Wget http://vdr.bluox.org/download/vdr-femon/vdr-femon-0.9.6.tgz
Wget http://vdr.bluox.org/download/vdr-streamdev/streamdev.tar
Tar-jxvf vdr-1.3.38.tar.bz2
Tar-zxvf vdr-sc-0.5.6.tar.gz
Tar-zxvf vdr-xine-0.7.9.tgz
Tar-zxvf vdr-femon-0.9.6.tgz
Tar-xvf streamdev.tar
Tar-jxvf xine-lib-cvs-20060319194500.tar.bz2
Tar-jxvf xine-ui-cvs-20060319194500.tar.bz2
Music sc-0.5.6 vdr-1.3.38/PLUGINS/src
Music xine-0.7.9 vdr-1.3.38/PLUGINS/src
Music femon-0.9.6 vdr-1.3.38/PLUGINS/src
Mv streamdev vdr-1.3.38/PLUGINS/src
Cd vdr-1.3.38/PLUGINS/src
Music vdr-sc-0.5.6 SC
Music xine-0.7.9 xine
Music femon-0.9.6 femon
Cd ../../
Patch-p1 <./PLUGINS/src/SC/patches/vdr-1.3.38-ffdecsa-0.1.3.diff
Patch-p1 <./PLUGINS/src/SC/patches/vdr-1.3.38-sc.diff
Gedit recording. h modify # define FRAMESPERSEC 25, change 25 to 30, save and exit, and enable NTSC.
Cd ..
Patch-d.-p0 <PLUGINS/src/xine/patches/xine-lib.patch
Cd vdr-1.3.38
Make -- vfat -- lirc
Make plugins IRDETO = 1 SECA = 1 VIACCESS = 1 NAGRA = 1 CARDCLIENT = 1 SHL = 1 CONAX = 1 DBG = 1
Make install
Cd ../xine-lib
./Autogen. sh
Make
Make install
Cd ../xine-ui
./Autogen. sh -- enable-PMP-keys
Make
Make install

5. Configure the parameters
Cd/video
Mkdir-p plugins/xine
Mkdir Plugins/nagra
Cd/usr/local/src/vdr-1.3.38
Cp *. conf/video
Cp/usr/local/src/vdr-1.3.38/PLUGINS/src/xine/data/noSignal. mpg/video/plugins/xine/noSignal. mpg
Cd/video
Gedit sources. conf
Add the satellite you are receiving
ApStar-1 S138E
S146E Agials 2
Save and exit

LNB and Diseqc settings file-diseqc. conf

[E0 10 38 C0] indicates the 1st ports of diseqc. You can also use [E0 10 38 F0] [E0 10 38 F1] [E0 10 38 F2] [E0 10 38 F3].
[E0 10 38 C4] indicates the 2nd Ports of diseqc. You can also use [E0 10 38 F4] [E0 10 38 F5] [E0 10 38 F6] [E0 10 38 F7].
[E0 10 38 C8] indicates the 3rd ports of diseqc. You can also use [E0 10 38 F8] [E0 10 38 F9] [E0 10 38 FA] [E0 10 38 FB].
[E0 10 38 CC] indicates the 4th ports of diseqc. You can also use [E0 10 38 FC] [E0 10 38 FD] [E0 10 38 FE] [E0 10 38 FF].

The following parameters are the dual-vibration 9750-10600 model. The following is the model of single-vibration 11300.
# SAT765-765-Port 1 # SAT765-765-Port 1
S76.5E 11700 V 9750 t v W15 [E0 10 38 C0] t S76.5E 99999 V 11300 t v W15 [E0 10 38 C0] T
S76.5E 99999 V 10600 t v W15 [E0 10 38 C0] T S76.5E 99999 H 11300 t V W15 [E0 10 38 C0] T
S76.5E 11700 H 9750 t V W15 [E0 10 38 C0] t
S76.5E 99999 H 10600 t V W15 [E0 10 38 C0] T

# SAT146-146-Port 2 # SAT146-146-Port 2
S146E 11700 V 9750 t v W15 [E0 10 38 C4] t S146E 99999 V 11300 t v W15 [E0 10 38 C4] T
S146E 99999 V 10600 t v W15 [E0 10 38 C4] T S146E 99999 H 11300 t V W15 [E0 10 38 C4] T
S146E 11700 H 9750 t V W15 [E0 10 38 C4] t
S146E 99999 H 10600 t V W15 [E0 10 38 C4] T

# SAT138-138-Port 3 # SAT138-138-Port 3
S138E 11700 V 9750 t v W15 [E0 10 38 C8] t S138E 99999 V 11300 t v W15 [E0 10 38 C8] T
S138E 99999 V 10600 t v W15 [E0 10 38 C8] T S138E 99999 H 11300 t V W15 [E0 10 38 C8] T
S138E 11700 H 9750 t V W15 [E0 10 38 C8] t
S138E 99999 H 10600 t V W15 [E0 10 38 C8] T

# SAT122-122-Port 4 # SAT122-122-Port 4
S122E 11700 V 9750 t v W15 [E0 10 38 CC] t S122E 99999 V 11300 t v W15 [E0 10 38 CC] T
S122E 99999 V 10600 t v W15 [E0 10 38 CC] T S122E 99999 H 11300 t V W15 [E0 10 38 CC] T
S122E 11700 H 9750 t V W15 [E0 10 38 CC] t
S122E 99999 H 10600 t V W15 [E0 10 38 CC] T

Parameter description:
V vertical polarization H horizontal polarization
T 22 K off T 22 K on
V 13 V 18 V
A mini a B mini B
Wnn waits for nn millisecond [xx...] hex code command queue

Modify the setting file.
Gedit diseqc. conf)
S146E 99999 V 11300 t v W15 [E0 10 38 C0] T
S146E 99999 H 11300 t V W15 [E0 10 38 C0] T

S138E 11700 V 9750 t v W15 [E0 10 38 C4] t
S138E 99999 V 10600 t v W15 [E0 10 38 C4] T
S138E 11700 H 9750 t V W15 [E0 10 38 C4] t
S138E 99999 H 10600 t V W15 [E0 10 38 C4] T
Save and exit

Gedit setup. conf (pay attention to the settings of quad-cut and lnb)
ChannelInfoPos = 1
CurrentChannel = 10101
CurrentVolume = 255
DefaultLifetime = 99
DefaultPriority = 50
DiSEqC = 1 (DiSEqC = 0 indicates that Diseqc is not enabled when DiSEqC = 1)
EPGBugfixLevel = 2
EPGLanguages =
EPGLinger = 0
EPGScanTimeout = 5
InstantRecordTime = 180
LnbFrequHi = 11300 # model of lnb
LnbFrequLo = 11300 # model of lnb
LnbSLOF = 0
MarginStart = 2
MarginStop = 2
MarkInstantRecord = 1
MaxVideoFileSize = 2000
MenuScrollPage = 0
MinEventTimeout = 30
MinUserInactivity = 120
MultiSpeedMode = 1
NameInstantRecord = TITLE EPISODE
Ossheight = 410
OSDLanguage = 0
OSDLeft = 55
OSDMessageTime = 1
OSDSkin = classic
OSDTheme = default
OSDTop = 30
OSDWidth = 608
PauseLifetime = 1
PausePriority = 10
PrimaryDVB = 1
PrimaryLimit = 0
RecordDolbyDigital = 1
RecordingDirs = 1
ResumeID = 0
SetSystemTime = 0
ShowInfoOnChSwitch = 1
ShowReplayMode = 1
SortTimers = 1
SplitEditedFiles = 1
SVDRPTimeout = 300
TimeTransponder = 412632
UpdateChannels = 3
UseSmallFont = 0
UseSubtitle = 1
UseVps = 0
VideoFormat = 0
VpsMargin = 120
ZapTimeout = 3
SC. LoggerActive = 1
SC. LoggerTimeout = 0
SC. Nagra. MinEcmTime = 400
SC. ScCaps = 1 2
Save and exit

Vi. Test
Scan a channel file in the format
D/usr/local/src/linuxtv-dvb-apps-1.1.0/uitl/scan
./Scan-l 11300-x 0-o VD-s 0 dvb-s/Agials146E>/video/channels. conf
After a satellite program is scanned, check that the satellite names in the Section are inconsistent with those in sources. conf and diseqc. conf. Make sure that they are modified manually. Otherwise, the program cannot be received.
Star Chinese: 12541: v: S146E: 26600: 164: 96: 0: 1: 29: 0: 0: 0
TVBS-N; D-Sky: 12302: v: S138E: 30000: 102: 103: 0: 500: 1: 1: 100: 0
Use xine to test
Xine
Cd/usr/local/src/vdr-1.3.38
./PMP-Psc-P 'xine-R'-Pfemon-P streamdev-server
In the xine control panel, there is a buttons for the vitamin D service. after starting the./vitamin D service, click the buttons for the vitamin D service in the xine service.
Set the keyboard control at the beginning and then use it.
For more settings, see the document in each plug-in

7. windows client settings
Decompress vdrmediaclient.0.0.0.7beta.zip
Copy channels. conf in/video to the vdrmediaclient.0.0.7beta directory.
Modify VDRMediaClient. ini
Streamdev = 0.3.3b
IP = 192.168.0.200)
Video0 =\\ 192.168.0.200 \ video (in linux, samba shares the recording directory of the PMP, and the client port broadcasts the recorded Program)

You can use a plug-in to implement very powerful functions. More powerful features are available for everyone.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.