DiSEqC 1.1&1.2 Autoswitch for UFS910 v0.3

Status
Not open for further replies.

Rocknroll

Staff member
Administrator
Messages
6,174
Kathi looking better every day:

########################################################################
# v0.3
# diseqc_mon & diseqc_cfg - diseqc monitoring scripts v.080208 by bbjs
#
# Check for channel change every second, autosend diseqc command when:
# -channel & satellite has changed
# #########################################################################

-Upload files to /data/bin/ and /data/diseqc/ and chmod to 755
-Install Elemental's SatChannelListEditor v 2.3.0.0 on a PC, if not already using it....
(don't forget to set Options/Settings receiver to UFS-910-XML)

-At this time there's NO scripts for setting up motor included (to make Humlan happy...)
If you know YOUR own HW setup (position numbers already stored in motor / multiswitch)
there's no need... IF you like/need, use any scripts you like (I use telesat's) to manually
control motor and add new positions.

-Anyway, I may add script & menu for editing postion table and GotoX/Usals when/if I get the time...

-To do: Fully verify diseqC 1.1 (I don't own a multiswitch...) - please give feedback !
Rewrite some parts in order to support diseqc 1.1 and 1.2 at the same time...
(To connect rotor on uncommitted switch port)


At 1st time after install, new settings upload and after sat channel rescan:
---------------------------------------------------------------------------
-

1 - Download settings from UFS910 to pc in XML-format using Elemental SatChannelListEditor v2.3.0.0

2 - Run the script /data/bin/diseqc_cfg (will preserve existing diseqc settings if exists, even if
satellites are renumbered or new added )

3 - If new satellites added, edit manually /data/diseqc/diseqc.cfg to match your own HW setup (switch/motor)

To auto launch at boot, add before start of osd-menues in your /config/init.sh :
# DiseqC 1.1/1.2 autoswitch
/data/bin/diseqc_mon &

To get channel-sat mapping update from menu, add to your prefered diseqc .mnu file:
8_sh=Update DiseqC Channel-Sat mapping|/data/bin/diseqc_cfg|WAIT

To use with diseqc 1.1 switches, in diseqc_mon add line & modify send command:
/data/bin/diseqcsend1.2 224 49 107 $ssat
to:
ssat=`expr $ssat + 239`
/data/bin/diseqcsend1.2 224 16 57 $ssat

Enjoy sat-autoswitch at channelchange !


Note - the temp file current_sat points at the position/line in diseqc.cfg with the sat in use.
Not to the position in motor or switch - Same for the autogenerated file SatPos.dsq

The syntax for the diseqc.cfg file is:

<diseq_position> <Satname_geoposition>

<Satname_geoposition> is taken from the box settings file and should not be modified manually.
<diseqc_position> is the one to edit to match YOUR motor/switch physical position
If it exists an old /data/diseqc/diseqc.cfg, defined values will be read from this one at update
(unless satellite name has changed...)
If no old diseqc.cfg file or a new satellite is added, diseqc_position will be set to 255 by default
and a manual edit is needed (FTTB...)
255 also indicates that NO diseqC command will be sent for channels at this position.
Should look like this example:

4 ASTRA_19.2E
3 HOTBIRD_13.0E
255 TURKSAT_42.0E
9 ASTRA_23.5E
7 ASTRA_28.2E
2 SIRIUS_5.0E
5 EUTELSAT_7.0E
6 EUTELSAT_10.0E
10 EUTELSAT_16.0E
255 HELLASSAT2_39.0E
11 HISPASAT_30.0W
14 TELSTAR12_15.0W
12 TELECOM2D_8.0W
255 ATLANTICBIRD3_5.
13 AMOS_4.0W
1 THOR_1.0W


NOTE -The order of satellites in diseqc.cfg is matching the box settings file
and should not be manually modified (or any position deleted...)


A note on settings files:
-------------------------

-SatChannelListEditor seems to be unable to handle Satellite names longer than 16 characters
when downloading from box in 910-XML format (upload is ok, RAW mode is ok both ways)
Satname get then a blank field... so keep satellite names below 16 character long.

-Avoid Satellite names including special characters like & and / - the ampersamp & will be stored
like & in the xml-file and take five characters space.

-Some special characters like & / $ | may also cause problems for the sh-scripts (sed, grep, ...)
so you better avoid those too in Satellite names....



All creds for:
diseqcsend binary to konfetti & criwi
pt_reader binary to braway
SatChannelListEditor program to Elemental
Scripts & concept - thats me.... (and yeah, a true sh-guru could likely do these MUCH more compact...)


v0.3 2008.02.08 - Corrected two bugs in the configuration script that may cause a corrupt cfg file
when Satellite names are more than two words long.
Another bug will cause a corrupt cfg-file when adding a new satellite to an
existing configuration.
Changed diseqc default value to 255 in diseqc.cfg, also indicating NO commands will
be sent.
 
Status
Not open for further replies.
Top