Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't save the output of minicom into a file

When I use Minicom to capture data from a serial port, I need to save the big data into a file, named minicom.cap. However, if I press Ctrl+A and L to capture file, it failed. No file was created (minicom.cap did not exist beforehand). My download directory was properly created. My OS is Mint, and I read data from Arduino nano v3.0

like image 997
Kerwong Avatar asked Jul 04 '12 18:07

Kerwong


People also ask

How do I save minicom logs?

Another useful Option is to log all information to a file which will be saved in your Home directory. Select 'Filenames and paths' and press 'F' (Logging options). By default this will be saved as 'minicom. log', but change it to whatever you like with the 'A' key.

How do I save minicom configuration?

Minicom allows you to store and recall configuration files in a quite handy way. and after having configured what you need, selecting the option “save setup as dfl”. If you are root then the configuration will be saved into /etc/minicom/minirc.

Where are minicom files stored?

location of configuration files The configuration files for minicom are located in /etc, with a name prefix of 'minirc. '. You can have several minicom configuration files, for different serial hardware on your machine.


2 Answers

Did you try to start minicom as

minicom -C capturefile 

Unless i got something wrong, it should start to capture incoming data immediately.

like image 117
Klaus-Dieter Warzecha Avatar answered Sep 19 '22 22:09

Klaus-Dieter Warzecha


OP might miss step "Shift + L" after writing, so the overall procedure is as below:

1 (inside minicom)

2 Ctrl A + Z

3 Shift + L

4 (wait for writing ... )

5 Shift + L

6 (check the file you have written, default is minicom.cap, you may want to find it at /root/minicom.cap)

like image 31
LinconFive Avatar answered Sep 20 '22 22:09

LinconFive