Page 1 of 1

CoolTerm Linux Automation

Posted: Fri Nov 13, 2020 4:13 pm
by chinchilla9
Hi,

I have a question about automating CoolTerm on Linux.

I would like to run some kind of script that automatically opens CoolTerm, connects to a serial device, sends a number, and then closes CoolTerm. How would I do this on Linux? I am on Ubuntu 18.04.

Thank you very much for the help!

-Chinchilla9

Re: CoolTerm Linux Automation

Posted: Fri Nov 27, 2020 4:05 pm
by roger
Hi,

CoolTerm is scriptable via Python. I suggest you take a look at some of the scripting examples that are included with CoolTerm.

However, if you don't need any particular CoolTerm features, and all you need is to send a string via the serial port, you can use the echo command and route the string to the serial port

Example: sending "Hello World" to the serial port with path /dev/ttyUSB0:

Code: Select all

echo -en "Hello Word" > /dev/ttyUSB0
I hope this helps

Roger