Linux Log Serial для двоичного файла
(stty raw; cat > received.log) < /dev/<your_serial_port>
Tired Thrush
(stty raw; cat > received.log) < /dev/<your_serial_port>