This is a little more than the scope of the question calls for but as it has already been answered, I thought somebody might like to do things a little "User friendly"user friendly.
You might be interested in this if you want to frequently want to quickly open up a serial connection to multiple devices. You can do this with desktop shortcuts.
I use this for switch and router connections, I have two different cable typesconsole cables, a usbUSB to mini USB and also a db9 with usbUSB A adapter to rj45. Using this
Using the shortcuts here means I don't need to manually reconfigure minicom eachevery time I want to switch devicedevices. The shortcuts give the correct configconfiguration file as a parameter (identifier) as well as the capture file (-C) so all. All i need to do it make sure my devices are connected to my computer with the cables.
If this is something you could use, run these commands as a normal user from your terminal (not from minicom). The configconfiguration files will be save insaved to your home directory where minicom can find them.
Make a log file directory: You might choose to just log in /var/log but I want quick access to themthe log files.
If your cable uses an RS-232 chip such as some usb to mini usb console cables, your tty device will likely be on ttyACM* and not ttyUSB*
Create the minicom configuration file using nano. Adapt the capitalised parts to fit your needs., baudrate may be an set incorrectly if you get quirky characters or no output. You canmay create as many as you need along with the desktop shortcuts. just change the identifier.
nano ~/Desktop/IDENTIFIER.desktop
[Desktop Entry]
Encoding-UTFEncoding=UTF-8
Name=Minicom IDENTIFIER
Comment=Something relevant to your connection/device name maybe
Exec=minicom IDENTIFIER -C/home/USER/minicom/IDENTIFIER.log
Terminal=1
Type=Application
That's it, now test yourthe connection, double click your new shortcut.
A note about the IDENTIFERIDENTIFIER part, it can be anything. a router or switch model, a device name or type. Do what suits you but maybe use hyphens instead of spaces, I've not tested that but i would imagine they would cause issues such as only getting the name before the first space or worse, attempting to load multiple minicom.identifier files.
Because youryou have set minicom is setup now to logcapture output, by tailing the log/capture file you can scroll back as far as you need should you be running things with lengthy output, It can be useful for configconfiguration files in routers/switches for example, which can be thousands of lines long. Just scroll to the part you are working on in the tailed logfile to use as a reference while you make changes in minicom, the tail terminal will still collect data but will not automatically jump back to the new line as minicom does when you star to type.