Personal tools
 
Document Actions

Before the fun starts

How to control Tux Droid... in a network.

Se

This tutorial will demonstrate in an entertaining way how to start programming. The tutorial shows how to program Tux Droid with a simple but powerful language: Python.
Page 2 of 6.

The following is required to start the "tux shell" and to connect it with the daemons:

Running the "tux shell" program

The program to control Tux Droid is called "tux shell". Now, to start it:
  • Open a terminal window in Linux
  • Type the command "tuxsh"
$ tuxsh

If all goes well, the terminal window will display this:

--------------------------------------------------------------- 
TUXDROID PYTHON API 0.2.0
---------------------------------------------------------------
>>>


Connecting "tux shell" with Tux Droid


Organisation en réseau de Tux Droid

To control Tux Droid, messages need to be sent to the "daemons". These "daemons" are tiny programs that speak the language of Tux Droid. To be able to send them messages, you will need to know the following:

  • The computer address where Tux Droid is located. The address of  a computer is called an "IP address". In the graphic above we use vvv.xxx.yyy.zzz
  • The number where the daemon listens for incoming messages. This number is what we call a "port". To send messages we use port 5000.  Now, to specify we want to send messages to computer vvv.xxx.yyy.zzz trough port 5000, you type:
>>> tux.daemon.connect(5000,'192.168.0.1')


 
by Se last modified 2007-06-01 16:04
You are here: Home Documentation Tutorials Programming Tux Droid with Python Before the fun starts

Powered by Plone CMS, the Open Source Content Management System