Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 24722  / 2 Years ago, thu, march 3, 2022, 10:28:48

How can I record all data coming out of a serial port straight to a file on disk?



I have tried cat and cp, but these appear to be buffered, and I am trying to log a small amount of data, so nothing comes through.


More From » serial-port

 Answers
1
(stty raw; cat > received.log) < /dev/<your_serial_port>


Originally from here.


[#29370] Friday, March 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
moloy

Total Points: 457
Total Questions: 93
Total Answers: 119

Location: Romania
Member since Wed, Dec 29, 2021
2 Years ago
;