andRoc Introduction & Setup

Deutsche Version Nederlandse Versie ContentMobile ClientsandRoc


The Android based wireless client for Rocrail.


Features

androc-tattoo.jpg

  • Works with all Command Stations supported by Rocrail
  • List up all available Rocrail servers. (Android 1.6+)
  • Loco throttle with:
    • 24 functions, 4 groups of 6, and lights
    • Release and Start
  • Loco Setup:
    • Vmin, Vmid and Vmax
    • Programming on the main. (PoM)
  • Controls:
    • Automatic mode
    • Routes
    • Actions
    • Switches
    • Outputs
    • System
  • Accessory pad
  • System monitor
  • Layout:
    • List with all ZLevels
    • Block status color
    • Interactive
    • Fiddle Yard
    • Turntable
    • Module view
  • User interface is localized; Depending of the language selected for the device.
  • Shows cell phone number or device ID in the Rocview as throttle ID


Prerequisites


Install

Android Market

This method is preferred; You will be notified about updates.

  1. Search for andRoc or Rocrail in the Market App.
  2. Touch the install button.
  3. Ready to run.



Permissions

Name: Reason:
android.permission.INTERNET To enable a network connection with the Rocrail server.
android.permission.READ_PHONE_STATE For using the cell phone number or device ID as throttle ID.
android.permission.CHANGE_WIFI_MULTICAST_STATE Multi cast for R2RNet announcements.


Demo Access

To test andRoc without a local running layout you can use the following demo access:

Host Port
rocrail.dyndns.org 8080

It has a small layout, connected to the virtual command station, and about 20 predefined locos with small images.


Internationalization

andRoc will use the selected device language if available. It defaults to English.

Add or edit your own language at LaunchPad:
Translations at LaunchPad: https://translations.launchpad.net/rocrail/androc/+pots/androc


Reporting Bugs & Wishes

The activities


Navigation between the activities is done by the Menu.
Touching the Loco image will cycle through the Throttle, Loco and Loco Setup activity.

Connect


The initial values are for the Rocrail demo, rocrail.dyndns.org:8080, which needs Internet access of the Android device.
After connecting the Rocrail server a dialog shows the progress of loading the plan.
The last host:port combination is saved for the next session.

Title

The plan title of the Rocrail server which did announce itself over R2RNet.

Host

The IP address or computer name of the target Rocrail server.

Port

The client port of the Rocrail server. Default 62842.

Recent

Select one of the previous connected Rocrail server from the list.


Preference s


System monitoring

This option needs a restart of andRoc to get active.
Use this option with care because this requires a lot of processing power of small devices. Leave it off for normal use.

Keep screen on

Prevent the device of going into sleep mode.

Module view

Switch directly to module view in case the loaded plan is modular.

Clear recent list

Clear the list of recently connected Rocrail servers.

R2R Address/Port

If a Rocrail server has R2RNet activated it will provide its client connection information by multi casting to the andRoc clients.

andRoc:  <netreq req="clientconn"/>
Rocrail: <netrsp host="192.168.100.37" port="62842" rsp="clientconn" plan="Plan-F"/>



Throttle & Loco

Loco image

Clicking in the loco image will open the Loco activity.

ST

Start automatically running the selected loco if the auto mode is activated.
This button is disabled if the auto mode is not activated.

RE

Release a loco from this throttle.
Without releasing a loco from a throttle it is not possible to control it by another throttle/client. This behavior can be manipulated by disable steal loco control.

FG

Function group selection button. There are four groups of 6 function buttons available.

Direction

Flips the current driving direction of the loco.

Velocity bar

Velocity commands are send if the delta is 5 or at move end.
The delta is introduced to reduce the amount of commands triggered by changing the bar position.

Start

Start automatically running the selected loco if the auto mode is activated.
The selected schedule or block is used as destination if set.

Half Auto

Determines if the Start will issue a normal GO or one in half automatic mode.

Set in block

Moves the loco in the selected block.

Swap

Swap the logical placing of the loco.



Loco Setup

Vmin, Vmid and Vmax

Adjust the velocity in all running modes including automatic.

CV Write/Read

Programming on the main. PoM
Reading CV value from the main needs bidirectional communication.

Dispatch

v1.1.207
Dispatch the loco for a throttle like the LocoNet Fred(i).



Accessory


This is for testing of accessories.
Especially of use at starting up a new layout in Rocrail.

Type

The addressing scheme can be selected with the Type button:

  • M → Module
  • F → Flat
  • P → Port

For more information on addressing schemes: Addressing

<< < > >>

Selecting a start address can be done with the numeric touch field or those four buttons on the bottom of this view.


System


On power down a notification is shown. The system activity will get visible if this notification is touched.

Monitor

System events and CS messages are listed up below the buttons of this view.
The max. list length is 100, the oldest entry will be removed from the list.

Auto start

:!: Start all trains in automatic mode.



Routes


Selecting a route will send an activation command to the Rocrail server.
This is mainly used for testing.



Actions


Selecting an action will send an unconditional activation command to the Rocrail server.
This is mainly used for testing.



Info


Information about Copyright, license, Version, Throttle ID and so on are listed up on this view.



Layout


A list of all available ZLevels.
The example shows all module names of a modular layout.
This list will not appear when only one ZLevel is defined for the current layout.
The first entry in the list is the “modview” visualization if the plan is a modular layout.

Level

A single touch on an object will send for most types a Flip command to the Rocrail server.
Block, FiddleYard and Turntable objects will send an Open or Close command.


Block


A single touch on the block will open a new view for controlling it.
Long pressing on an occupied block will open the loco control.

Loco list

Selecting a loco from the list will set it in this block.

Loco

Opens the loco control.
Touching the loco image will also open the loco activity.

Open/Close Block

Set the block to the Open or Closed state. The LED signals if the block is Open.

Accept BiDi Ident

Accept a BiDi Ident from a loco in auto mode.
See also: Accept Ident


Fiddle Yard


Touching the FY will open a new view for controlling it.

Open

Opens or closes this fiddle yard for trains.

Next/Previous

Move the table to the next/previous track.

Track

Move to the selected track.


Turntable


Touching the TT will open a new view for controlling it.

Open

Opens or closes this turntable for locomotives.

Next/Previous

Move the bridge to the next/previous track.

Track

Move to the selected track.


Personal Tools