Apart form normal TCL commands TERMI also supports following commands.
Sends “data” out to connected serial-port. While sending “data” out, character and line delays from port settings are applied. If data string contains TCL variable, string value of the variable is sent out.
TERMI > set $address 20000
TERMI > set $data 1234
TERMI > SendOut “devwrite $address $data”
TERMI >
For the above code, data send to serial port will be "devwrite 20000 1234" (without quotes)
Please note that SendOut command only sends data out, it won't read or return any thing back.
This command is very efficient if user only wants to send data out without bothering about incoming data.
Note that both outgoing and incoming data will get displayed on serial-pan.
None
TERMI
>
SendOut “devwrite $d”
This commands is same as “SendOut” except that it returns incoming data after command execution.
After sending sending “data” out to the connected serial-port, SendOutR waits for TermiReadDelay. While waiting for TermiReadDelay received data is collected in ReadBuffer. Collected data is returned as command-return after TermiReadDelay expires.
Character and line delays settings are applied while sending data out.
TermiReadDelay and ReadBuffer size can be changed by using SetTermiReadDelay and SetReadBufferSize commands.
Incoming Data
TERMI > set $address 20000
TERMI > SendOutR “devread $address”
1234
TERMI >
Note that both outgoing and incoming data will get displayed on serial-pan.
Sets TermiReadDelay in milli seconds. SendOutR commands accumulates incoming data for TermiReadDelay duration in ReadBuffer.
None
TERMI > SetTermiReadDelay 50
Returns current TermiReadDelay.
Time in milli seconds
TERMI > GetTermiReadDelay
50
TERMI >
Resets TermiReadDelay to original 200ms.
None
TERMI > ResetTermiReadDelay
TERMI >
Sets read buffer size, this buffer is used for receiving data in SendOutR command. Buffer size is set as number of characters.
None
TERMI > SetReadBufferSize 1500
TERMI >
Returns current read-buffer size.
size in number of characters
TERMI > GetReadBufferSize
1500
TERMI >
Sets read buffer size to original 1000 characters.
None
TERMI > ResetReadBufferSize
TERMI >
Returns present working directory path. pwd can be changed using cd command.
present working directory path
TERMI > pwd
C:\Program Files\TERMI
TERMI >
Prints files and directory present in pwd.
files/directory present in pwd
TERMI > dir
mclcfpg.dll
serial_port.exe
TCL85.DLL
TERMI.exe
TERMI.ini
TERMI >
Clears TERMI pan.
None
TERMI > clear
Termi stores history of previous commands typed by user, this command prints list of previously typed commands. Previously typed command can be accessed directly by up/down arrow keys.
None
TERMI > cmdhist
dir
pwd
GetTermiReadDelay
Prints current license path.
License path
TERMI > GetLicensePath
C:\TERMI_LIC\TERMI
TERMI >
Prints TERMI version.
version no
TERMI > GetTermiVersion
1.0
TERMI >
Prints one liner help for each TERMI command.
command list and one liner description
TERMI > help
pwd (prints present working directory)
dir (prints files/dir present in pwd)
SendOut (Sends string out to serial port)
SendOutR (Sends string out to serial
port and reads data back)
clear (clears TERMI window)
cmdhist (Previous commands history)
SetTermiReadDelay (sets read delay in ms)
GetTermiReadDelay (gets read delay)
ResetTermiReadDelay (resets to original delay value)
SetReadBufferSize (sets read buffer size)
GetReadBufferSize (gets read buffer size)
ResetReadBufferSize (resets to original buffer size)
GetTermiVersion (prints Termi Version)
GetLicensePath (prints license file path)
help (help command)
exit (Exit TREMI Application)
TERMI >
exits TERMI
None
TERMI > exit