Changes the DTR(Data Terminal Ready) status of Tera Term. Setdtr Remarks. If the connection is not serial connection or flow control is not 'none', this command will do nothing. If is zero, the DTR is turned off. If is non-zero, the DTR is turned on. Example; DTR on setdtr 1; DTR off setdtr 0 See also. In Vba How To Talk To Com1 - I have a usb serial port which connected to another. Free Excel Help. I have a usb serial port which connected to another computer with tera-term on it. Is there anyway from vba to talk through this serial port using a macro? Thanks in advance. For example, if I have a total of 53 calls and the total talk.
The terminal emulation program Tara Term is an easy-to-use terminal emulator, similar in function to HyperTerminal or Procomm. But, Raveon finds it is easier to use, more reliable, and has better features. One of its new features is the ability to process a “Macro File”. It is a very handy program to communicate with a Raveon data radio modem, and is a good way to automate the configuing your radio modem.
Tera Term is an open-source terminal emulation program that is easy to use, and very powerful. Raveon recommends using it over Hyperterminal. Version 4.7 is currently available for download at logmett.com here: http://logmett.com/index.php?/download/download-tera-term-470-freeware.html Tera Term has a Macro FIle script processor that allows a person to create a script file of macro commands. The Script file can configure the radio modem, prompt the user for input, and validate the programming of the radio modem.
Tera Term Macro files have an extension .TTL. When in install Tera Term, the .TTL extension will be associated with Tera Term, so anytime you click on a .TTL file, the Tera Term maco processor should run it. If it does not, you can manually associate the “TLL” file as described below.
The macro File with the .TTL extension must be created before you can run it. Raveon may provide this for you, or you may create this yourself. Information about Tera Term’s Macro abilities is here:http://ttssh2.sourceforge.jp/manual/en/macro/ although you may have to search the Internet for more details. A good way to understand it, is to study a macro file provided by Raveon.
When you run a macro file, there will be at least two windows pop-up, and maybe three windows. The largest window is the Tera Term program itself. As the macro runs, there will be a small window titled MACRO – xxxxx where xxxxx is the name of the macro file that is running. You can pause or end the macro execution by clicking on a button on this window.
At various plces in the macro file script, the user may be promoted to enter a paramter, or answer yes/no to a question. A good practice at the end of the script is have the macro script close Tera Term so another script may be started.
How to associate “TTL” files with MACRO
Since Tera Term 4.59, you can associate “.TTL” files with MACRO with installer. To associate the file extension “.TTL” with MACRO, do the following steps.
Execute the [View] Options command of Explorer.
Select the “File Types” tab.
Click the “New Type” button and specify items like the following.
Click the “New” button and specify items like the following.
Close all the dialog boxes by clicking “OK” buttons.
Macro Example
Below is a simple example macro script to program a Raveon M7 radio modem.
Following is a quick overview of the Tera Term Macro Language.
Identifiers and reserved words
1) Variable identifiers
The first character must be an alphabetic (A-Z, a-z) or an underscore character '_'. Subsequent characters can be alphabetic, underscore or numeric (0-9). Variable identifiers are not case sensitive. The maximum length is 32.
2) Label identifiers
Label identifiers consist of alphabetic, underscore or numeric characters, and are not case sensitive. The maximum length is 32.
3) Reserved words
The following words are reserved:
Line formats
There are four kinds of line formats for macro files. Any line can contain a comment which begins with a ';' character. Also, a user can use the C language style comment(/* - */). Comments give no effect on the execution of MACRO. One line can contain up to 500 characters. The part that exceeded 500 characters is ignored.
1) Empty lines
Lines which have no character or contain only space or tab characters or a comment. They give no effect on the execution of the macro.
2) Command lines
Lines containing a single command with parameters.
3) Assignment lines
Lines which contain an assignment statement.
4) Label lines
Lines which begin with a ':' character followed by a label identifier.