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
CoolTerm Linux Automation
- roger
- Site Admin
- Posts: 431
- Joined: Fri Apr 24, 2009 12:41 am
- Contact:
Re: CoolTerm Linux Automation
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:
I hope this helps
Roger
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
Roger