We are trying to transfer file using minicom (in host pc) and picocom(in arm based evaluation board) combination.
On evaluation board side we have /dev/ttygserial
and on host pc side we have /dev/ttyUSB0
.
Host side minicom setup is as follows,
/dev/ttyUSB0
Steps to set minicom in receiving mode.
ctrl+a R
, select zmodem
.On evaluation board side we use picocom as follows to send the file.
picocom -b 115200 -s "sz -vv" /dev/ttygserial
Ctrl+A and Ctrl+S
.**file
All this steps works and we are able to transfer different types of files from evaluation board to pc but now we want to put this procedure into C code. For that I have following doubts,
minicom
in file reception mode using single command? (meaning noninteractively) ?In other sites also people have asked this kind of question but questions unanswered yet.
So I decided to look into picocom
code and found that it is very simple to make a change in that code.
I have made send command non-interactive, I will make receive command too non-interactive and post full code here so that it can be referred by anyone who has a similar problem.