Telnet Floyd tutorial

This tutorial will describe your first steps for using MyTelnet client. You can find more information here.

Getting started

Supported devices

First of all be sure that your mobile device supports socket connection. On these MyTelnet should run fine. I am myself testing TelnetFloyd on Motorola T720i and on Siemens MT50 and Siemens S55.

Downloading TelnetFloyd

You can install TelnetFloyd using "go to url" and typing: http://activationrecord.net/radekp/telnet/TelnetFloyd-1.1.jad in your phone. After downloading you can run it.

First look

When you run TelnetFloyd telnet first time, you will see help screen, it can look like this:

Every line here assigns function to certain key, so e.g. key1 connects to host 158.194.80.20, key2 types string "polakr" (thats my login) and key3 types "mypass" that is my password ;-) So i can just press 1, 2, 3 and i am logged on my favourite computer.

Changing connection

You can always change function that is assigned to key. Just press key that is not assigned (so it's e.g. key 6 for us now). You will enter dialog with all possible functions listed and selet the one you want. We will select from list "connection" and press bind command as shown in picture below:

Now the form for filling connection parameters is shown up.

Just type hostname into first field and port in second field. Hostname can be any string e.g. phoenix.inf.upol.cz, but some phones like my Motorola T720 know just ip adresses, so you must type 158.194.80.13. If you dont know ip adress just run command: ping phoenix.inf.upol.cz and you will obtain the ip. Second field port is nearly always number 23. After you've filled the form hit OK command. Next screen shows:

Here you just press key that you want to use for connecting so it could be e.g. key 1.
Now we have set up key 1 for making connection. Try to press it and you should be connected to your favourite host. You can assing or reassign any other keys the way you want. Just do it. Telnet will remember all your settnigs.

Basic communication

Once you are connected, you will probably need basic communication with telnet. Most offen action will be input dialog. It's by default bind on key 5. After you press 5, you will be prompted to type string and the string will be sent and key ENTER will be pressed. You can also bind input dialog with default text entered if needed.

Typing special sequences

Input dialog, enter string or type string actions can process special key sequences like pressing ctrl+key, alt+key or shift+key. If you want enter such a special combination of keys, just type e.g. ctrld into input dialog.

Moving cursor

Moving cursor is done by action key pressed. Cursor keys are defaultly mapped to keys *,0,# and 8. You can remap them if needed. The parameters for key pressed actions are:
  • "37", "65535", "8" for left arrow
  • "39", "65535", "8" for right arrow
  • "38", "65535", "8" for up arrow
  • "40", "65535", "8" for down arrow
    Tab key, Enter and other keys are handled by these actions:
  • key pressed "8", "8", "0" is BACKSPACE
  • key typed "0", "9", "0" is TAB key
  • key typed "0", "10", "0" is ENTER
  • key typed "0," "27", "0" is ESCAPE I can add more on request and you can find key codes in file KeyEvent.java if you have a look at sources.

    Advanced topics

    Modes

    Once you go out of free keys for bindings you can define another set of bindings in other 2 modes. You can switch modes using prev. and next mode functions. The mode 1 is standard mode (same as default mode 0), but mode 3 is really specific. All functions assigned in this mode will proceed at startup, when telnet midled is loaded, so be very carful what you assing there. However assingnig your favourite colors for background and foreground can be usefull. You can also specify sleep time and timeout for keeping connection alive here. Dont bind funcions like exit application here! UPDATE: DONT BIND IN MODE 3 AT ALL YET - IT AINT WORKING :(

    Setting sleep time

    Use action set sleep time to specify period in milisecond, that the telnet will be checking if are any new data in connection. Setting this value e.g. to 3000 can save your phone battery (tho i havent checked exactly how much :P)

    Keeping connection alive

    Some pohones are after certain time when connection is not active disconnect. You can avoid it using actions keep connection alive. As parameter you pass time in seconds. After this time, telnet will send character to server and deletes it. It will be working in most cases well.