Conf

The file robot.conf contains configuration data for the RobotsAnywhere app, and resides in /sdcard/ . A separate configuration file was chosen over other options in order to allow external applications to easily modify it (a text editor, or even a SMS message, for example).

Since it's just a file on the SD card, it may be edited with any text editor of your choice when the phone is making its SD card available to a host computer: the auxiliary app confedit is just such a simple text editor provided for your convenience.

The syntax is in the format key = value and keys not understood by the app will be ignored, so that you may use the same file for configuring your own app that runs on the same phone. Whitespace is pruned (you may not use spaces in the id field, try an underscore instead).


Here is a brief list of keys and defaults:

server1 = 192.168.0.101 IP address for the server the system will connect to.

server2 = 192.168.0.102 IP address for the server the system will connect to if server1 is not available.

audiobaud = 4800 Baudrate for serial output on the audio port (headphone jack.

id = Robot1 Robot name to display in the server window after connection.

compassfix = 0 Compass adjustment (in degrees, no decimals) depending on how the phone is mounted: this is usually 0, 90 or -90.

resolution = L What resolution to start transmitting as: valid values are Low, High, Small/decimated and Text only.

shownmea = false Determines whether to show NMEA information on the phone's display while the app runs.

showimage = true Determines whether to show a preview overlay on the phone's screen while the app runs.

fullscreen = false Determines whether to let the app take over the screen, i.e. no notification bar.

startonboot = false Activates the app at phone startup if true.

serialport = /dev/ttyMSM2 Chooses which serial port to bind the app to.

serialbaud = 57600 Chooses serial port baud: different types of Android daughterboards? have different default or maximum baud rates.


A configuration file may look something like this:

serverip= 174.121.143.90
id=GSM_rover_4
compassfix=0
resolution=T
showimage=false
shownmea=true
startonboot=true

This is probably a rover that has to work in low-bandwidth conditions, by the look of the settings (external IP, no video by default, automatic startup).

Page last modified on April 14, 2014, at 11:48 PM
Powered by PmWiki