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,
- Serial device -
/dev/ttyUSB0
- Baud Rate - 115200
Steps to set minicom in receiving mode.
- press
ctrl+a R
, selectzmodem
. - Now minicom will start waiting for file from other end.
On evaluation board side we use picocom as follows to send the file.
- On command line execute
picocom -b 115200 -s "sz -vv" /dev/ttygserial
- Now press
Ctrl+A and Ctrl+S
. - Picocom will ask for filename by printing
**file
- Once file name is provided and enter is pressed file is sent to host.
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,
- Is it possible to set
minicom
in file reception mode using single command? (meaning noninteractively) ? - Is it possible to send file using picocom in single command (meaning noninteractively)?
- Any other suggestions?
picocom
application and I didn't change code after initial changes. – Pathological