微型校正设备文件行为
我有一个在“ \ 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论