Tera Term will execute commands from a TTL file. Create a text file with your one command, or any number of commands, and save the file with a.TTL extension. In Tera Term click the 'Control' menu, then select 'Macro'. This will allow you to navigate to your TTL file. There are example TTL files in the Tera Term installation directory.
A Tera Term macro to automate a narrow sweep
#203 I considered writing a serial app from scratch but decided to see if any terminal program I have would have a full-featured enough macro language to allow doing it in a macro. I've been using something called Tera Term or maybe Tera Term VT for cases were I needed a serial terminal. (Most recently to talk to my HP-48G calculator.) Tera Term looks pretty good for that and I made up a simple macro after a few hours of trial and error on the commands. I have a passive audio filter for CW with a BW of about 500 Hz centered on 550 Hz or so. So I set up this macro to sweep from 100 to 1200 Hz in 50 Hz steps and save it to a file which I'd then import into Excel. It seemed to do pretty well. A lot of stuff is hard coded that might be made more flexible with some more time. I attach my macro file for anyone who'd want to use it as a starting point in trying a similar approach. Here's some info on the macro capabilities of Tera Term: https://ttssh2.osdn.jp/manual/en/macro/command/index.html 73- Nick, WA5BDU |
#204 Nick, that is a great job of keeping it simple but really useful and powerful. That was the intention of the serial commands. toggle quoted messageShow quoted textI will be back doing more with the Teensy code soon, but not with the PC end. Your simple export to Excel allows one to do some really neat processing. That does most of what one needs. Thanks for sharing. Bob On 2/12/19 5:50 PM, Nick Kennedy wrote: I considered writing a serial app from scratch but decided to see if any terminal program I have would have a full-featured enough macro language to allow doing it in a macro. |
#208 Nick That looks nice. You might be interested in this too. I've been trying to get some python software https://www.qsl.net/pa2ohh/11sa.htm found here http://rheslip.blogspot.com/2015/08/the-simple-scalar-network-analyzer.html to compile. Finally got it to run on my mac. Don't have it communicating with the AVNA yet. |
#209 The SCNA project looks pretty nice. I got involved with something similar several years ago called Poor Ham's Scalar Analyzer or 'PHSNA' I was the software guy. I first did all the functions on the Arduino and the user accessed them via a dumb terminal and a menu that the Arduino would transmit to it. Then I started over with a Windows app doing all the controlling functions and talking to the hardware via a serial link. I programmed it C#. What a huge project that was for me, especially since I was learning C# for the first time while doing it. We had a large number of functions. I think I was most proud of one that calculates the motional parameters of a crystal automatically. Plug it in and push a button. Anyway ... right now I wanted to upload a slightly more polished version of the macro for Tera Term I described the other day. I've tried to make it more flexible and interactive. There are dialog boxes for the user to select or input - -- Reference resistance (50 or 5000) -- Start frequency -- End frequency -- Step value -- Output data file name It seems to be doing pretty well. I still start up Tera Term and tell it to connect to my COM port before running the macro. I was wanting to make that a sort of command line input thing where you'd run Tera Term and the macro all with one shortcut, but I've not gotten that to work yet. I had a line to set the directory path for the output file, but I commented it out since it's unique to my system. Any user may want to fill in his own preferred path. Or let it go to its default path. I thought that would be the program installation directory, but now I think it may be where the macro is stored, which would be OK. I got Tera Term by going to the OSDN download page from here: https://ttssh2.osdn.jp/index.html.en 73- Nick, WA5BDU |
MACRO.ttl:; Switch Login. Myloginname='anonymous' mypassword='PassWord' mpause 1000. Sendln myloginname. Sendln mypassword. I run the macro directly from a command prompt: c: Program Files (x86) teraterm ttermpro 10.10.5.5 /P=23 /T=1 /DS /M=MACRO.ttl. The macro starts when I run the command above. However, the sendln command only sends the. Tera Term Serial Macro Example In C. PIC 12F675 tutorial 3:Shows how to use a PIC serial port connecting to the PC and using a MAX232 interface chip. US Converters are experts in serial data communication and supply USB Serial Adapters, RS232 to RS485 and RS422 Converters including Serial Wireless adapters.
Original author(s) | T. Teranishi |
---|---|
Developer(s) | Tera Term Project |
Initial release | 1994; 26 years ago |
Stable release | |
Repository | |
Written in | C and C++ (originally Pascal) |
Operating system | Microsoft Windows |
Type | Terminal emulator |
License | BSD license |
Website | ttssh2.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.[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 answered questions from Tera Term users. Posting in this forum was the best way to suggest new features for Tera Term or propose new commands for the Tera Term Macro language. For more than 10 years the forum was hosted on LogMeTT.com website maintained by Boris Maisuradze. Boris also developed several freeware tools that became part of TeraTerm package. Later Boris decided to retire from this project. LogMeTT.com website was shut down and support forums moved to TeraTerm Project site.
Tera Term Macro Examples Biology
Since 2007, Tera Term has been maintained by Tera Term Project (Japanese Developer team) as open source software.
Features[edit]
Tera term supports:[citation needed]
- Serial port connections over UART.
- TCP/IP (telnet, SSH1, SSH2) connections.
- Log replaying.
- Named pipe connection.
- IPv6 communication.
- VT100 emulation and selected VT200/VT300 emulation.
- TEK4010 emulation.
- File transfer protocols (Kermit, XMODEM, YMODEM, ZMODEM, B-PLUS and Quick-VAN).
- Scripts using the 'Tera Term Language'.
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]
Tera Term Macro Examples Ap
See also[edit]
- Telix - MSDOS era terminal