Tera Term Serial Macro Examples

Posted : admin On 4/8/2019
  1. Tera Term Serial Macro Example
Jump to navigationJump to search

How to use Tera Term for the Serial. Good source of inspiration for creating more complex Teraterm macros. For example:; sample macro of Tera Term.

  • Tera Term is an opensource terminal emulator on MS-Windows commonly used by us developers. Tera Term supports a 'rich' macro language that can help in automating user actions.
  • [1] Only if is 1 (on) and is 23, Tera Term starts spontaneously sending telnet commands to the host for the option negotiation when the TCP/IP connection is established. In any cases, Tera Term can respond to telnet commands sent by the host.
Tera Term
Original author(s)T. Teranishi
Developer(s)Tera Term Project
Initial release1994; 25 years ago
Stable release
Repository
Written inC and C++ (originally Pascal)
Operating systemMicrosoft Windows
TypeTerminal emulator
LicenseBSD license
Websitettssh2.osdn.jp

Tera Term (alternatively TeraTerm) is an open-source, free, software implemented, terminal emulator (communications) program. It emulates different types of computer terminals, from DEC VT100 to DEC VT382. It supports telnet, SSH 1 & 2 and serial port connections. It also has a built-in macroscripting language (supporting Onigurumaregular expressions) and a few other useful plugins.

History[edit]

The first versions of Tera Term were created by T. Teranishi from Japan. At the time, it was the only freely available terminal emulator to effectively support the Japanese language. Original development of Tera Term stopped in the late 1990s at version 2.3, but other organizations have created variations.

In October 2002, Ayera Technologies released TeraTerm Pro 3.1.3 supporting SSH2 and added multiple other features like a built-in web server for API integration with external systems, recurring 'keep-alive' commands, and ODBC database support via the TT Macro Scripting Language. Ayera Technologies did not make their source open, but does provide limited technical support.

In 2004, Yutaka Hirata, a software designer from Japan, restarted development of the open source version of Tera Term. He added his own implementation of SSH2 and many new features on top of what was part of version 2.3. A complete list of them is published on TeraTerm Document.[1]

To avoid confusion with version numbers and to indicate that Tera Term developed by Yutaka was more recent than version 3.1.3 from Ayera Technologies, it was decided to give this branch of Tera Term Professional version numbers starting 4.xx.

In January 2005, Boris Maisuradze, together with Yutaka Hirata, started the TeraTerm Support forum where they answer questions from Tera Term users. Posting in this forum is the best way to suggest new features for Tera Term or propose new commands for the Tera Term Macro language.

Since 2007, Tera Term has been maintained by Tera Term Project (Japanese Developer team) as open source software.

Tera Term has comparable features to PuTTY.[2]

Common versions[edit]

  • 1.4 Last version supporting Win16; source available in Pascal
  • 2.3 Last version released by T. Teranishi
  • 3.1.3 Last version released by Ayera. Has issues with scroll window boundaries. Title bar identifies it as version 3.1
  • 4.xx Latest OSDN release

Sample images[edit]

See also[edit]

References[edit]

  1. ^[1]
  2. ^Davis, David. 'Using a terminal emulator to access Cisco command-line interface'. Archived from the original on August 21, 2008. Retrieved 2008-11-11.

Tera Term Serial Macro Example

External links[edit]

Tera term macro commands
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Tera_Term&oldid=895673019'
Categories:
Tera term macro tutorial
Hidden categories:

I am testing some boards and the system used to test these is Tera Term. In Tera Term I use the Serial Port to send commands to the board in order to log in and run certain settings that I want.

Instead of typing these commands each time I test a board I want to create a program that sends these commands without the requirement to type them again and again each time.

Also I need to set a delay between each command as the system needs to to load between them.

Question
How can automate the typing of commands and delay between subsequent commands in teraterm?

AdamAdam
Tera Term Serial Macro Examples

2 Answers

I used the Tera Term Language (TTL) and created a macro which solved my problem. I used code to wait for a prompt from the system and then print out the command I wanted.

Here's a link to the TTL syntax:
http://ttssh2.osdn.jp/manual/en/macro/syntax/

AdamAdam

Don't use Tera Term for that. It is not made for scripting, but rather for interactive use. Try to get a command line serial terminal emulator.

If you are on Linux you can use screen or there like.

If you are on Windows you can just write echo command > COM1 in a normal com.exe-window, according to this link: https://batchloaf.wordpress.com/2013/02/12/simple-trick-for-sending-characters-to-a-serial-port-in-windows/(Replace COM1 with the name of your serial interface)

Make sure you don't have your Tera Term open while you use the echo-command, otherwise you'll get 'Access Denied'.

DakkaronDakkaron

Not the answer you're looking for? Browse other questions tagged scriptingserial-portcommandteraterm or ask your own question.