how to edit stored satellite details (2 Viewers)

RobTi

Portal Pro
April 29, 2009
87
1
Home Country
Scotland Scotland
Hi i have asked something like this before in another section but didn't really get a black & white answer so will try here as its more specific.

I have a motorised satellite system and have scanned at the moment around 6 satellite positions and looking to add more, but i can't seem to find where these details are stored, reason for asking is if i have 6 stored then try to save another one it will come up as position 15 or something so i have more positions than satellites stored.

I would also like to save these details so when i do a clean install i can paste them back in as MediaPortal doesn't use USALS for positioning so i have no way of storing positions if a new install is done and it takes me days to find and store them all again

Thanks

Robert
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hello Robert

    The motor positions corresponding with each of the satellites are stored into the memory of the motor. Each position is associated with an index.
    The association from index to satellite name is stored per tuner in the TV Server database "DiseqcMotor" table.

    So it works like this...
    You select a tuner and go to the DiSEqC motor tab for that tuner.
    You select a satellite.
    You select a transponder from that satellite.
    You move the motor into a position that receives that transponder as well as possible using the "move ..." buttons.
    You click "store position".
    At this point TV Server has to determine the index to associate with the position:

    If you have never stored a position using this tuner then TV Server will pick 1 as the index.
    If you have previously stored a position for a different satellite using the same tuner then TV Server will pick the next highest number available and use it (eg. you have stored 2 satellites previously => TV Server will pick 3 as the index).
    If you have previously stored a position for that satellite using the same tuner then TV Server will find the index in the DiseqcMotor table and reuse it.

    Once the index is determined, TV Server sends a message to the motor saying "when I tell you to go to position <index>, you should come back to the position that you're at right now".

    After you've stored the position, you go to the "scanning" tab and scan the satellite that you just stored.
    Each channel that is found is linked to the motor position using the previously mentioned index.
    This allows TV Server to tell the motor to go to the right position when you tune to one of those channels.

    Does that make sense? Hopefully it does.

    Now to answer your questions directly.
    I have a motorised satellite system and have scanned at the moment around 6 satellite positions and looking to add more, but i can't seem to find where these details are stored...
    The positions are stored in the motor's memory and in the TV Server DiseqcMotor database table.
    The table has the following columns:
    1. idDiSEqCMotor - a unique ID assigned to each motor position that TV Server knows about.
    2. idSatellite - a unique ID assigned to each satellite that TV Server knows about.
    3. idCard - this is a reference to the tuner that the position is associated with. A given satellite may have a different position index for different tuners.
    4. position - the index that the motor has stored in its memory. The position that the motor associates with this index needs to match the satellite referred to by idSatellite.

    ...reason for asking is if i have 6 stored then try to save another one it will come up as position 15 or something so i have more positions than satellites stored.
    Do you mean the "position" index value or the idDiSEqCMotor value?

    I would also like to save these details so when i do a clean install i can paste them back in as MediaPortal doesn't use USALS for positioning so i have no way of storing positions if a new install is done and it takes me days to find and store them all again
    If you go to the Import/Export section of TV Server configuration, select the "export" tab, enable "TV channels", and click "export now"... TV Server will create an XML file containing all your channel details. You can open that XML file in any text editor (notepad, wordpad, word etc.). You'll see a whole lot of sections like:

    <channel IdChannel="6" DisplayName="fake channel name" ...>
    <mappings>
    <map IdCard="1" IdChannel="6" IdChannelMap="6" />
    ...
    <map IdCard="10" IdChannel="6" IdChannelMap="50" />
    </mappings>
    <TuningDetails>
    <tune IdChannel="6" IdTuning="6" SatIndex="2" />
    </TuningDetails>
    </channel>

    This says, channel "fake channel name" is linked to tuners 1 and 10, and can be tuned with tuning detail 6. As part of the properties associated with each tuning detail, there is a "SatIndex". This is the index to the position that the motor has associated with a satellite in its memory.

    So basically as long as the motor doesn't forget the position associated with index 2 (AKA SatIndex 2) then you should be able to import and export channels to your heart's content.

    Does that also make sense?

    mm
     

    RobTi

    Portal Pro
    April 29, 2009
    87
    1
    Home Country
    Scotland Scotland
    Thanks for the helpful reply where would i find the TV Server DiseqcMotor database table as i have looked in program data & program files in Mediaportal folders and can't find it

    Robert
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hello Robert

    It is in the database (ie. MySQL or SQL Server database).

    mm
     

    Users who are viewing this thread

    Top Bottom