This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux:UART 用户空间 application.c 源代码

Guru**** 2471240 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/650548/linux-uart-user-space-application-c-source-code

工具/软件:Linux

大家好、

我附加了两个用于读取和写入的 UART 文件。

1)我的问题是,在从/dev/ttyUSB0运行读写操作后,读操作一次,然后写操作。 但写入后读取无效。

2)有时,无论我写什么,数据读取程序都会读取相同的数据。

3)当 PC 和终端设备通过 UART 进行通信时会发生这种情况。

4)请指导我如何解决 problem.e2e.ti.com/.../3652.uart_5F00_write.ce2e.ti.com/.../5732.uart_5F00_read.c 问题