LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ascii-xfr

ASCII file transfer over serial connections

TLDR

Send a file over the serial line
$ ascii-xfr -s [path/to/file]
copy
Receive a file from the serial line
$ ascii-xfr -r [path/to/file]
copy
Send a file with a line delay of 100 milliseconds
$ ascii-xfr -s -l 100 [path/to/file]
copy
Send a file with a character delay of 10 milliseconds
$ ascii-xfr -s -c 10 [path/to/file]
copy
Send a file and transmit an end-of-file character when done
$ ascii-xfr -s -e [path/to/file]
copy
Receive a file with verbose output
$ ascii-xfr -r -v [path/to/file]
copy

SYNOPSIS

ascii-xfr -s|-r [-ednv] [-l linedelay] [-c characterdelay] filename

DESCRIPTION

ascii-xfr is a file transfer utility that sends or receives files over serial connections using plain ASCII line-by-line transfer. It is part of the minicom package and is designed as a last-resort transfer method when the remote system does not support proper file transfer protocols like ZMODEM, XMODEM, or Kermit.During sending, end-of-line characters are transmitted as CRLF. During receiving, CR characters are stripped from incoming data. The tool reads from stdin when receiving and writes to stdout when sending, so it requires I/O redirection to the serial device, typically provided by minicom or a similar terminal emulator.

PARAMETERS

-s

Send a file
-r
Receive a file
-e
Send the End-Of-File character (Control-Z) when uploading has finished
-d
Use Control-D instead of Control-Z as the EOF character
-n
Do not translate CR/LF; skip automatic CRLF conversion
-v
Verbose mode; display transfer statistics on stderr
-l milliseconds
Line delay; wait this many milliseconds after each line when transmitting
-c milliseconds
Character delay; wait this many milliseconds after each character when transmitting

INSTALL

sudo apt install minicom
copy
sudo dnf install minicom
copy
sudo pacman -S minicom
copy
sudo apk add minicom
copy
sudo zypper install minicom
copy
brew install minicom
copy
nix profile install nixpkgs#minicom
copy

CAVEATS

There is no error detection or correction. Data corruption during transfer goes undetected, making it unsuitable for binary files or unreliable links. The tool is designed for text file transfer only; binary files will be corrupted by the CRLF translation unless -n is used. The man page itself recommends it should only be used if the remote system does not support anything else.

HISTORY

ascii-xfr was written by Miquel van Smoorenburg and Jukka Lahtinen, the authors of minicom. Minicom originated in the early 1990s as a free, text-based replacement for the DOS program Telix and became the de facto standard serial terminal emulator on Linux. ascii-xfr was created as a companion utility for the simplest possible file transfer scenario.

SEE ALSO

minicom(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid