viernes, 16 de marzo de 2012

Using a dish rotor with VDR

This is a video example of VDR and a Golden Media GM-50-120 DiSEQc 1.2 H-H Mount with a Channel Master 110cm offset dish.

As I couldn't use rotor plugins because there are some incompatibility version, I decide use raw commands to manage the motor.


The confuguration it's in diseqc.conf (/etc/vdr/diseqc.conf in Debian) and is necesary configure all satellites.

In the next example, I use univerlsal LNB and Are setup SatMex 5 at 116.8°W (on my west), Amazonas at 61°W (on my north, well, and a very little to east) and Atlantic Bird 1 at 12.5°W (on my east)
S116.8W 11700 V  9750 t v W15 [E0 31 6E E3 DD] W15 t
S116.8W 99999 V 10600 t v W15 [E0 31 6E E3 DD] W15 T
S116.8W 11700 H  9750 t V W15 [E0 31 6E E3 DD] W15 t
S116.8W 99999 H 10600 t V W15 [E0 31 6E E3 DD] W15 T

S61.0W 11700 V  9750 t v W15 [E0 31 6E D0 08] W15 t
S61.0W 99999 V 10600 t v W15 [E0 31 6E D0 08] W15 T
S61.0W 11700 H  9750 t V W15 [E0 31 6E D0 08] W15 t
S61.0W 99999 H 10600 t V W15 [E0 31 6E D0 08] W15 T
S12.5W 11700 V  9750 t v W15 [E0 31 6E D3 73] W15 t
S12.5W 99999 V 10600 t v W15 [E0 31 6E D3 73] W15 T
S12.5W 11700 H  9750 t V W15 [E0 31 6E D3 73] W15 t
S12.5W 99999 H 10600 t V W15 [E0 31 6E D3 73] W15 T
The interesting part, the raw commands are between brackets and are in hexadecimal. Example
E0 31 6E D0 08 Highlighted commands are to move the motor

E0 31 6E D0 08  Here indicate move to WEST

E0 31 6E E0 08  Here indicate move to EAST

E0 31 6E E0 08  Here indicate how many degrees to move

E0 31 6E E0 08  Here indicate how many decimal degrees to move 

Note: As I'm in southern hemisphere, I need to invert east to west because the motor is created to use in northern hemisphere.

When set up degrees and decimal,allways is respect my geográfical position. I'm at 61.46°W, then, Amazonas satellite it's 0.5° to my east. But why 08?
Here hexadecimal commads to decimals degrees:
  • 00 is 0.0°
  • 02 is 0.1°
  • 03 is 0.2°
  • 05 is 0.3°
  • 06 is 0.4°
  • 08 is 0.5°
  • 0A is 0.6°
  • 0B is 0.7°
  • 0D is 0.8°
  • 0E is 0.9°
And finaly, and very important comand. As the motor had a sotf limit at 50° E/W, I use a fake satellite configurated in source.conf (/etc/vdr/sources.conf in Debian) named "Disable Soft Limits" and in diseqc.conf
S999W 11700 V  9750 t v W15 [E0 31 63 00 00] W15 t
S999W 99999 V 10600 t v W15 [E0 31 63 00 00] W15 t
S999W 11700 H  9750 t V W15 [E0 31 63 00 00] W15 t
S999W 11700 H 10600 t V W15 [E0 31 63 00 00] W15 t
Adding a fake channel, I could diseble soft limits.