Teraterm question
max72
Posts: 1,155
I'm testing the WiFly module to remotely control the propeller.
I would like to be able to enter commands simply selecting a key. At the moment when I type in teraterm the text is forwarded only after a carriage return is sent.
Is there a workaround? I also tried Putty but it complains about the connection, even in raw mode, so this is not working at all.
Thanks in advance,
Massimo
I would like to be able to enter commands simply selecting a key. At the moment when I type in teraterm the text is forwarded only after a carriage return is sent.
Is there a workaround? I also tried Putty but it complains about the connection, even in raw mode, so this is not working at all.
Thanks in advance,
Massimo
Comments
If you can specify NO BUFFER, each character would be sent at once. Xterm or something else may work. There are lots of choices.
http://en.wikipedia.org/wiki/List_of_terminal_emulators
Something low level, like Termite may be better suited.
http://www.compuphase.com/software_termite.htm
Terminal is an old favorite for hobby work (With such a generic name is is difficult to search for, but it is excellent).
https://sites.google.com/site/terminalbpp/
I searched an option to directly sent the chars, but with no success.
I tested the latest putty, and in raw data I can successfully access the wifly module, but it has the same behaviour of teraterm, and also in this case I cannot find the possibility to directly readdress the data.
I'm connecting via TCP/IP, so Termite and friends are not a suitable solution. I tested locally with the parallax serial terminal and it worked, but when I moved to remote connection I found this unexpected problem.
Massimo
it *almost* works with putty.
There is an option called local line editing.
Problem is I set the wifly password, and this setting is not compatible with local line editing off. So I have to start with "on", log in, and switch it to "off".
With no password set there should be no problem.
I think I'll try to code a kind of access control inside the propeller..
Massimo
It may all be involved in some design decisions about how large a packet should be before sent and only over-ridden for small packages with the CR.
So as I'm seeing it, the character are being sent by teraterm, and its the application thats waiting for the carriage return. We have all the setting as default per the installation, except for baud. (and maybe send is CR instead of CR+LF, I forget).
what version do you have?
From an unsolved thread it looks former version of Teratem had the instant behavior while more recent one are waiting for the end of line. To tell the truth the putty option name is not so intuitive, so maybe also in teraterm it is buried somewhere...
Massimo
I would try some of the counter-intuitive settings (character delays) in case the WiFly is messing with the timing at its end. Are you 'pasting' the commands in, or typing them one character at a time?
Wifly password login requires to send the full string at once, otherwise you get error.
I disabled password control and I implemented it in the propeller.
I saved the password in the upper 32k eeprom memory, together with some parameters, so It is persistent and configurable (with Wifly I disabled the remote configuration, so it is not possible to do it remotely).
Teraterm keeps waiting for a carriage return and cannot change it. Putty accepts both options.
Finally I tested with windows telnet. In this case the problem is the clear screen sequence I use it is not recognised.
For the record Putty and Teraterm accept the following sequence:
Another nice point is the terminal can stay open while reprogramming..
I'll try to upload some code and a little bit of summary on the forum.
I have yet to update the slender propeller platform board variant in Tubular's PCB wiki, but I'll try to do both shortly.
Massimo
I don't use any passwords as the props are inside the firewall(s).
I have the prop sending these ANSI codes for controlling the VT100 terminal emulation,
http://propforth.googlecode.com/files/ANSI%20Escape%20Sequences20120704-1652.f
and they work pretty well (the ones that didn't are commented out, but they should work, I got lazy).
At least the ESC, Home, Clear, and most of the colors work.
I liked the idea access password was directly handled by the wifly, but a prop controlled login is even more flexible (can set timeout, change password..) and not so difficult to handle.
Massimo
using prof_braino's escape combination clear screen now works also with windows telnet. Have yet to try with the android tablet but I guess at least a client will comply.
Configuring a WiFly module I discovered that teraterm sends directly the chars when in serial mode, while it waits for the carriage return when connected in TCP/IP.
For the record here is the spin code I adapted from propforth... have definitely to start learning forth..
Thanks again,
Massimo