minicoms script傳檔案 - Linux

Table of Contents

請問,

有辦法利用minicom的script來傳送檔案嗎(整包檔案.hex)?

例如我接了一條RS-485

需要做更新,但是只能利用bash script來處理(minicon -S update.sh)

如果可以script內容需要怎麼寫?

--

All Comments

Sierra Rose avatarSierra Rose2019-12-02
minicom有困難 我自己是都用python or expect去抓serial
Faithe avatarFaithe2019-12-06
走 Zmodem 應該可以…
先在目標裝置上打 rz -b -Z (接收) 或 sz -b -Z (傳送)
然後按 minicom 的 Ctrl-A S (Send File)
或 Ctrl-A R
(Receive file)
Agatha avatarAgatha2019-12-09
抓 serial +1