如何将原始串行数据转储到磁盘

Ale*_*lex 3 serial-port

如何将串行端口输出的所有数据直接记录到磁盘上的文件中?

我试过catand cp,但这些似乎被缓冲了,我试图记录少量数据,所以没有任何结果。

Ale*_*lex 8

(stty raw; cat > received.log) < /dev/<your_serial_port>
Run Code Online (Sandbox Code Playgroud)

原来来自这里