1. Teraterm Command Line Serial Port

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.

TeraTerm Script - Duration. Bit serial write to terminal (TeraTerm) - Duration. 4 ways communicating with serial port in linux - Duration. Oct 31, 2015  No serial avaiable in Teraterm. Topic last updated 31 Oct 2015, by Chan Kim. Are the teraterm settings correct for the default nucleo serial port. Tera Term Source Code Overview. Tera Term macro script is BASIC-style language. Tera Term supports UART.

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

Serial port rs-232

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

Teraterm Script Serial Port
AdamAdam

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.

Teraterm script com port

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'.

Teraterm Command Line Serial Port

DakkaronDakkaron

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