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
-
This sounds like it could be a permissions issue. Try running minicom as root. If that fixes it, let me know so I can post this as an answer :) – ZnArK Jul 5 '12 at 20:21
-
Thank you for your help :-). And I know why now. It seems that I config minicom incorrectly, and it saves the output in the default directory. – Kerwong Jul 11 '12 at 6:30
-
6post your solution as an answer so this can be marked solved and other people with the same problem can be helped – ZnArK Jul 11 '12 at 13:41
Did you try to start minicom as
minicom -C capturefile
Unless i got something wrong, it should start to capture incoming data immediately.
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
)
-
The user already pointed out a solution in the comments to the original question. – Nic3500 Nov 15 '17 at 1:53
minicom needs a configuration file that is under root permissions and is stored at /etc/minicom/ and is named minirc.dfl.
Usually when you first run minicom for the first time, as sudo, you can save the minirc.dfl, as if you run as any other user it will not save.
That may be your problem.
-
you can also have your config files in
~/.minirc.X
where X is eitherdfl
for default or o symbolic name - no need forsudo
but may need to check permissions on actual serial port (on many Linux distros you would want to be in thedialout
group) - but not sure about Mint – nhed Jan 10 '17 at 22:04