Думаю, немного поздно, но я столкнулся с похожей проблемой.
Используйте FIFO (именованный канал). См. https://linux.die.net/man/3/mkfifo
# Create a temporary fifo
mkfifo /tmp/sz_fifo
# Write the file to the fifo and place in the background
# (Replace "cat" with some other command to stream over the network)
cat file_to_transfer.BIN > /tmp/sz_fifo &
# sz will read the file from the fifo
sz -X -k -b -vvv - /tmp/sz_fifo > /dev/ttyUSB0 < /dev/ttyUSB0
# Clean up
rm /tmp/sz_fifo