| Garcia aRelay Configuration Last Modified: 2009-07-24 | | |
| Acroname Robotics | |||
| Overview When using the Garcia robot with a Gumstix Verdex host processor, it is recommended to use the supplied aRelay application. The aRelay application is a gateway between the BrainStem hardware inside the Garcia and a TCP/IP socket interface. A configuration file for the aRelay allows parameter modification without the need for recompiliing any software. You must be comfortable with the following tools and means before attempting an aRelay configuration for the Garcia Gumstix host option.
BrainStem, Gumstix and aRelay Configuration Configuring the aRelay application requires some knowledge about the Garcia - Gumstix configuration. This includes having a properly configured "hosts" file, being on a network and knowing how you intend to communicate with the aRelay. A general topology is as follows: ![]() aRelay configuration used in Garcia. Information common for all Garcia robots is as follows:
Certain details will be different depending on how your Garcia Gumstix host is configured. One configuration setting that may vary will be defining what IP socket port to use for relaying data. This can be defined by specifying a number typically above 6000. The default aRelay application setting is to use port 8000. aRelay BrainStem Network Communication Log into the Gumstix and change into the aBinary directory (/home/acroname/aBinary). From the command line, launch the aRelay application to create a bridge to the BrainStem. The following example demonstrates a Gumstix Verdex with an IP address of 192.168.1.217. Issue the following command: root@garcia: aBinary$ ./aRelay -portname ttyS1 -baudrate 38400 -port 8000
relay resetting socket 192.168.1.217:8000
>relay<:
Configuration File Settings for BrainStem Network The "relay.config" under the /home/acroname/aBinary folder on the Gumstix may be used to store commonly used settings and simplify command line arguments. For example, to have the aRelay application use IP port 8001, talk to /dev/ttyS1 at 38400, edit the "relay.config" file as follows: ###################################################
# FILENAME: relay.config
###################################################
# Serial port connected to Garcia BrainStem network
portname = ttyS1
# Configured baudrate
baudrate = 38400
# aRelay socket port
port = 8001
The command line arguments can be simplified down to: root@garcia: aBinary$ ./aRelay
relay resetting socket 192.168.1.217:8001
>relay<:
Launching aRelay on Boot The aRelay application can be set up to launch automatically on boot. Create a script to launch the aRelay application. ###################################################
# FILENAME: /etc/init.d/aStartup.sh
# boot script to launch Acroname tools
###################################################
echo "Starting Acroname aRelay at IP port 8001 (BrainStem network)"
# Change to the Acroname aBinary install directory
cd /home/acroname/aBinary
# Start the aRelay program
./aRelay -portname ttyS1 -baudrate 38400 -port 8001 -quiet &
exit 0
Install a symbolic link to point to the script to run when the system system enters runlevel 5. This is specified in the /etc/inittab file on the Gumstix as the default runlevel. The value "S95" was picked to make sure the Acroname tools script is run last, but before the login prompt. root@garcia:/$ cd /etc/rc5.d
root@garcia:/$ cd ln -s ../init.d/aStartup.sh S95aStartup
Revision History:
|
| |||
| voice: 720-564-0373, email: sales@acroname.com, address: 4822 Sterling Dr., Boulder CO, 80301-2350, privacy © Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved. |