微型校正设备文件行为

发布于 2025-02-01 13:10:00 字数 384 浏览 1 评论 0原文

我有一个在“ \ rapdadf \ r \ n” 中提供数据的设备,其中最初\ r应该在那里,后缀“ \ r \ n”也应该在那里。 设备文件具有\ n而不是\ r(屏幕截图)。带有\ r的数据。

请帮助我了解此文件行为如何更改

? ://i.sstatic.net/qv53f.png“ alt =”不带\ r“ \ r”>

”

I have a device that gives data in "\rAPDADF\r\n" where the initial \r should be there and suffix "\r\n" should also be there.
The device file has \n instead of \r(screenshot attached).However, while reading data via minicom it is absolutely fine,( I see \r (0d in hex where it has to be) and after using minicom the device file shows data with \r.

Q- Please help me to understand how this file behaviour changed?

Device file without \r

Minicom showing 0d(=~\r)

Device file after using minicom

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文