You are not logged in.

Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, August 5th 2010, 7:47am

diseqcsetup:A bash script for VDR DiSEqC configuration

Author: Yinghong Liu <relaxbsd@gmail.com>

I hope that this script set the DiSEqC's work will become simple, effective, practical, not only that, I also hope that it will complete the complex DiSEqC settings. But because I lack a more detailed understanding of DiSEqC, I hope to get more help.
Currently, this script has English, Simplified Chinese, Traditional Chinese interface in three languages, if you are interested in translation of it, please use the edit tool to open it (such as vim), find diseqcsetup_en_US function, such as:
function diseqcsetup_en_US
{
...
}
Please use this section above, UTF-8 encoding preserved, and the function name change: diseqcsetup_ ${LANG} (${LANG} is the language environment variables such as en_US, de_DE, etc.), send an email to me(E-Mail Adress)
Thank you for your participation and help!

Regards

2010.8.12
Update to v0.13
*Fixed a serious bug, for the DiSEqC 1.1/2.1, lnb1's hex command sequence should be [E0 10 39 F0] rather than [E0 10 39 F1] (diseqc 1.2/2.2 is the same problem).
*For the committed and uncommitted waiting time between the command sequence is set to 244ms (> 100 ms is required between repeated), another, "W15 [E0 10 39 F0] W244 [E0 10 38 F0]" rather than "W244 [E0 10 39 F0] W244 [E0 10 38 F0] " (See update_recomm_for_implim)
*The vdr installation default config dir was in /video, and many users have changed to /etc/vdr, the script can be properly set by detecting (if not, then can be specified by the dialog), VDRCONFDIR directory sources.conf and setup.conf must exist. (but the default installation of vdr does not exist setup.conf)
*Modify a large number of English descriptions, such as "LNBF", "LNB" usually only receives signal from 1 polarity. "Non-standard user defined configuration" rather than "Set Multi DiSEqC switch(es)", Make it easier for customers to understand their meaning.

2010.8.9
Update to v0.12
*Mainmenu->multidish->step to "22Khz tone Control Devices" menu(If you chose before is not dual band lnb):
Add "Finished" label. Otherwise, here can not be set successfully.

2010.8.7
Update to v0.11
*Just fix some bugs.

2010.8.7
Update to v0.10
*Add circular polarization.support both linear polarization and circular polarization now.
*Add sequence repetition (1~3 times)
*Can specify the wait time.
*Fix some bugs.
hamigua has attached the following images:
  • diseqcsetup1.png
  • diseqcsetup2.png
  • diseqcsetup3.png
  • diseqcsetup5.png
hamigua has attached the following file:

This post has been edited 29 times, last edit by "hamigua" (Sep 8th 2010, 10:28am)


2

Thursday, August 5th 2010, 7:51am

Require:/bin/bash;/usr/bin/dialog;vdr(default vdr config dir:/etc/vdr);vdr config file:sources.conf,setup.conf and so on.
hamigua has attached the following images:
  • diseqcsetup6.png
  • diseqcsetup7.png
  • diseqcsetup8.png

This post has been edited 2 times, last edit by "hamigua" (Aug 11th 2010, 8:40pm)


3

Thursday, August 5th 2010, 1:16pm

@hamigua: thanks - this comes in handy with multi satellite setup :)

Could you add sequence repetition (eg: [E1 10 38 F0]) and wait states different to 15 milliseconds?
MSI P6NGM-FD | ASROCK A785GXH | Grafik: GeForce 9400GT| DVB-S2 Karten: Twinhan VP 1041 & Skystar HD

tecfreak

Professional

Posts: 1,184

Location: Berlin

  • Send private message

4

Thursday, August 5th 2010, 3:48pm

Thank you for that very useful script!

Here is the german vdr-wiki Page for that script:
http://www.vdr-wiki.de/wiki/index.php/DiSEqC_Setup

-> My VDRs <-

SERVER: Chenbro 19" 4HE | GA-H77-D3H | i3 3220 | 4GB DDR3 | Intel PRO/1000 PT DP Server
DD Cine S2 V6.5 + TT-C1501 | Intel SSD 530 120GB + 2x 4TB WD Red + 2TB Samsung F4
DOM0: xen 4.4 | ubuntu 14.04 | linux 3.14.12 @1000Hz - VDR-DOMU: ubuntu 14.04 | linux 3.14.12 @1000Hz | yavdr-ppa


CLIENT #1: Lian-Li PC-C37B | beQuiet Straight Power 400W | Asrock H81M-DGS | i3 4130 | 4GB DDR3
Kingston 60GB SSD | Zotac GT 640 LP | IR Atric rev5 | kubuntu 14.04 | yavdr-ppa

CLIENT #2: Sapphire Edge-HD | Atom D510 | 2GB DDR2 | 250GB HDD | Ion2 512MB DDR3 | ubuntu 12.04 | yavdr-ppa

CLIENT #3: MXQ AMLOGIC S805 | OpenELEC 6.0 by kszaq

This post has been edited 1 times, last edit by "tecfreak" (Aug 5th 2010, 4:26pm)


5

Thursday, August 5th 2010, 5:36pm

Quoted

Original von hamigua
Require:/bin/bash;/usr/bin/dialog;vdr(default vdr config dir:/etc/vdr);vdr config file:sources.conf,setup.conf and so on.


Thank you for your suggestion, I will try to improve

6

Thursday, August 5th 2010, 5:42pm

Quoted

Original von tecfreak
Thank you for that very useful script!

Here is the german vdr-wiki Page for that script:
http://www.vdr-wiki.de/wiki/index.php/DiSEqC_Setup


Thanks a lot. Although I do not understand German, and I have to resort to Google Translate, but I can feel the atmosphere here, very cool.

This post has been edited 1 times, last edit by "hamigua" (Aug 5th 2010, 5:44pm)


wirbel

Im Forum Zuhause

Posts: 10,282

Location: Berlin

Occupation: ja.

  • Send private message

7

Thursday, August 5th 2010, 6:44pm

Automatic translations via google are more or less unreadable.

The better idea in your case is putting your changes onto the english version of that page (http://www.linuxtv.org/vdrwiki/index.php/DiSEqC_Setup) and let others do the translation job. :)

Quellcode

1
:(){ :|:&};:

8

Thursday, August 5th 2010, 10:36pm

Thanks. Have anybody planned to add a circular polarization (R, L) ?
For example like this (some old version): http://www.forum.free-x.de/wbb/index.php…ca7140b0c445b29

9

Friday, August 6th 2010, 9:37pm

2010.8.7
Update to v0.10
*Add circular polarization.support both linear polarization and circular polarization now.
*Add sequence repetition (1~3 times)
*Can specify the wait time.
*Fix some bugs.
hamigua has attached the following images:
  • diseqc8.jpg
  • diseqc9.jpg

This post has been edited 1 times, last edit by "hamigua" (Aug 6th 2010, 9:46pm)


10

Friday, August 6th 2010, 9:40pm

Quoted

Original von hamigua
2010.8.7
Update to v0.10
*Add circular polarization.support both linear polarization and circular polarization now.
*Add sequence repetition (1~3 times)
*Can specify the wait time.
*Fix some bugs.

This post has been edited 1 times, last edit by "hamigua" (Aug 6th 2010, 9:45pm)


11

Saturday, August 7th 2010, 9:30am

thanks for the fix hamigua, but now I'm getting:

Source code

1
line 365: ((: 0-: syntax error: operand expected (error token is "-")
MSI P6NGM-FD | ASROCK A785GXH | Grafik: GeForce 9400GT| DVB-S2 Karten: Twinhan VP 1041 & Skystar HD

This post has been edited 1 times, last edit by "Lou" (Aug 7th 2010, 9:30am)


12

Saturday, August 7th 2010, 9:39am

What version is your bash(/bin/bash)? or a symbolic link to /bin/sh?
Can you run this command at your shell prompt?

Source code

1
for ((i=0;i-3;i++));do echo $i;done

This post has been edited 2 times, last edit by "hamigua" (Aug 7th 2010, 9:48am)


wirbel

Im Forum Zuhause

Posts: 10,282

Location: Berlin

Occupation: ja.

  • Send private message

13

Saturday, August 7th 2010, 10:11am

hi hamigua,

if you have updated versions of the images for the wiki replacing only the old content, you can just save them with the old file names.

I just put your new pictures from yesterday on english wiki to the old names, so please dont be surprised.. :-)

cheers, wirbel

Quellcode

1
:(){ :|:&};:

14

Saturday, August 7th 2010, 10:15am

Please try to setup a "Set Multi DiSEqC Switch (es)" for one or more satellites on port A (diseqc A, linear LNB through rotor.conf) and a stationary one on port B (diseqc B, circular LNB).
The script fails in this case.

15

Saturday, August 7th 2010, 10:43am

Quoted

Original von Lou
thanks for the fix hamigua, but now I'm getting:

Source code

1
line 365: ((: 0-: syntax error: operand expected (error token is "-")


It's a mistake,I'll fix it. thanks.

16

Saturday, August 7th 2010, 10:48am

Quoted

Original von wirbel
hi hamigua,

if you have updated versions of the images for the wiki replacing only the old content, you can just save them with the old file names.

I just put your new pictures from yesterday on english wiki to the old names, so please dont be surprised.. :-)

cheers, wirbel


I'm sorry for that. :) I'm not familiar with the operation of the wiki. Thanks!

17

Saturday, August 7th 2010, 11:00am

Quoted

Original von 1455
Please try to setup a "Set Multi DiSEqC Switch (es)" for one or more satellites on port A (diseqc A, linear LNB through rotor.conf) and a stationary one on port B (diseqc B, circular LNB).
The script fails in this case.


Thank you for your suggestion,if possible, can you provide me with more information about this? Thank you!

18

Saturday, August 7th 2010, 12:31pm

OK. For example we need to create a configuration for LNB2 (fixed dish) and LNB1 (motorized dish). It usually looks like this:

Source code

1
2
3
4
5
6
7
8
S35.9E  99999 R  10750 t v W15 [E0 10 38 F5] W15 T  
S35.9E  99999 L  10750 t V W15 [E0 10 38 F7] W15 T  

S60.0E  11700 V   9750 t v W15 [E0 10 38 F0] W15 t 
S60.0E  99999 V  10600 t v W15 [E0 10 38 F1] W15 T 
S60.0E  11700 H   9750 t V W15 [E0 10 38 F2] W15 t 
S60.0E  99999 H  10600 t V W15 [E0 10 38 F3] W15 T
 ......>
Follow these steps for obtain a white/blue screen:

Source code

1
2
multidish->LNB1->DiSEqC_0_2->Finished->S35.9->10750-circular->Finished->
Finished->LNB2-DiSEqC_0_1->Finished->S4.8E->9750/10600-linear->Finished->Finished
When you scroll the window you can see:

Source code

1
2
3
./diseqcsetup: line 783: [: too many arguments 
./diseqcsetup: line 786: [: too many arguments 
./diseqcsetup: line 1016: [: ==: expected to use the unary operator

This post has been edited 1 times, last edit by "1455" (Aug 7th 2010, 12:33pm)


19

Saturday, August 7th 2010, 12:46pm

Quoted

Original von hamigua
What version is your bash(/bin/bash)? or a symbolic link to /bin/sh?
Can you run this command at your shell prompt?

Source code

1
2
3
4
5
6
7
for ((i=0;i-3;i++));do echo $i;done
0
1
2

ls -la /bin/sh
lrwxrwxrwx 1 root root 4 2010-01-19 16:56 /bin/sh -> dash

it's an ubuntu/karmic
MSI P6NGM-FD | ASROCK A785GXH | Grafik: GeForce 9400GT| DVB-S2 Karten: Twinhan VP 1041 & Skystar HD

20

Saturday, August 7th 2010, 1:07pm

RE: diseqcsetup:A bash script DiSEqC configuration for VDR

Quoted

Original von hamigua
Author: Yinghong Liu <relaxbsd@gmail.com>

2010.8.7
Update to v0.11
*Just fix some bugs.

2010.8.7
Update to v0.10
*Add circular polarization.support both linear polarization and circular polarization now.
*Add sequence repetition (1~3 times)
*Can specify the wait time.
*Fix some bugs.

Immortal Romance Spielautomat