A terminal wrapper to send and receive files using Z-modem.
An absolutely diabolical script that calls sz and rz utilities from lrzsz package to send or recieve a file using Z-modem protocol.
Debian and Debian-based distos:
sudo apt-get install lrzsz -y
Fedora:
sudo dnf install lrzsz -y
You may find it under Releases tab or you can clone the project and run it from there.
./zmodem.sh <MODE> <INTERFACE> <BAUD> [FILE]"
-s -- send a file."
-r -- receive a file"
Which interface to use.
Interfaces are located in /dev directory. The script actually does not check which block device or interface you've passed to it, but as you're using Z-modem protocol, which sends data over Serial port, you should use only use tty devices, such as /dev/ttyUSB0.
Baud rate to use. The speed must be equal on both sides.
File to send. Only makes sense with -s option.