Andro Panel

Quick Start for Andro Panel Program for Android Tablets
AndroPanel communicates with the SX3 PC server via the sxnet protocol. It uses xml-based config files and displays the tracks and turnouts on an Android tablet. Tab on a turnout and it will change its state. One loco can be controlled additionally. If you enable "DEMO"-mode, then the SX3-PC program is simulated and the data are just echoed back. In this mode you can see the program working independently of any (Selectrix) model railroad hardware.

The panel is coded as xml in the file "panel-demo.xml". Only the tracks and sensors have to be coded, turnouts are calculated automatically the first time tracks are read. Use a raster of 20x20, see example file below.

The Locos are coded in the file "locos-demo.xml" (in directory /sdcard/andropanel/). Copy these file and edit them to match your layout, then select your newly edited files in the settings. The LOCO filenames must start with "loco", the PANEL filenames with "panel" to enable the settings program to find them.

... more to come ...

Example File "locos-demo.xml" - name, sx-address and mass (1...5) are the attributes for each loco.

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<loco-config >
  <locolist name="ibm1" >
    <loco adr="22" name="Lok22" mass="2"/>
    <loco adr="97" name="SchönBB" mass="2"/>
  </locolist> 
</loco-config>

Example File "panel-demo.xml", define tracks and sensors, the program will calculate the turnouts from the intersections of the track.

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<layout-config>
  <panel name="ibm1">
    <track x="0" y="60" x2="300" y2="60" />
    <track x="20" y="60" x2="60" y2="100" />
    <track x="20" y="100" x2="240" y2="100" />
    <track x="40" y="60" x2="80" y2="20" />
    <track x="60" y="40" x2="240" y2="40" />
    <track x="200" y="100" x2="240" y2="60" />
    <track x="80" y="20" x2="260" y2="20" />
    <track x="240" y="40" x2="260" y2="60" />
    <sensor name="CS24" x="140" y="60" sxadr="102" sxbit="4" />
    <sensor name="CS26" x="140" y="100" sxadr="102" sxbit="5" />
    <sensor name="CS22" x="100" y="40" x2="180" y2="40" sxadr="102" sxbit="3" />
  </panel> 
</layout-config>

After the program has done its turnout calculation and after you have set the sx-addresses (in the EDIT mode), you get a result similar to this example file:

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<layout-config>
  <panel name="ibm1">
    <track x="0" y="60" x2="300" y2="60" />
    <track x="20" y="60" x2="60" y2="100" />
    <track x="20" y="100" x2="240" y2="100" />
    <track x="40" y="60" x2="80" y2="20" />
    <track x="60" y="40" x2="240" y2="40" />
    <track x="200" y="100" x2="240" y2="60" />
    <track x="80" y="20" x2="260" y2="20" />
    <track x="240" y="40" x2="260" y2="60" />
    <turnout x="20" y="60" x2="34" y2="60" xt="30" yt="70" sxadr="80" sxbit="4" />
    <turnout x="40" y="60" x2="54" y2="60" xt="50" yt="50" sxadr="12" sxbit="5" />
    <turnout x="240" y="60" x2="226" y2="60" xt="230" yt="70" sxadr="6" sxbit="3" />
    <turnout x="60" y="100" x2="46" y2="100" xt="50" yt="90" sxadr="5" sxbit="1" />
    <turnout x="200" y="100" x2="214" y2="100" xt="210" yt="90" sxadr="6" sxbit="3" />
    <turnout x="60" y="40" x2="70" y2="30" xt="74" yt="40" sxadr="5" sxbit="2" />
    <turnout x="260" y="60" x2="246" y2="60" xt="250" yt="50" sxadr="13" sxbit="4" />
    <sensor name="CS24" x="140" y="60" sxadr="102" sxbit="4" />
    <sensor name="CS26" x="140" y="100" sxadr="102" sxbit="5" />
    <sensor name="CS22" x="100" y="40" x2="180" y2="40" sxadr="102" sxbit="3" />
  </panel> 
</layout-config>

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer