I use Tera Term over the serial port to conduct some tests on the board. I recently learned that I can do some scripting in Ter-Terme, so I am doing research to help automate and make testing a little easier.
I know that Tera Term has a website that lists examples of macros, as well as a list of commands, but I guess I need someone who has experience with text in Tera terms.
Tera Term uses a kind of base language called Tera Term Language (TTL), but it was difficult for me to determine from the very beginning which commands I needed to use.
Thorny site of terms: http://ttssh2.sourceforge.jp/ <- Note. The site is in Japanese, but I always have auto-translation ...
I am trying to develop a script to play a set of tracks using the "play x" command, where x is the index of the track. Ideally, the track will play for ~ 3 seconds and then increase to the next track. I have a very crude algorithm that I have to describe.
Algorithm:
;start
;input to take in number of track to test n tracks
;input is stored in "n"
i=0
do while i < (n+1)
;play track i for 3 seconds
i++
end while
;stop
If anyone has any ideas or experience with the term Thera, I would be very grateful.
If something is right now I need to figure out how to take the input input file and save it in a variable. I can probably figure out the rest ...
thank
source
share