Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当使用从机的RTU时,当数据中包含0x0A,数据前会被插入0x0D,导致数据传输出错! #60

Open
wickman19760418 opened this issue Jun 24, 2021 · 0 comments

Comments

@wickman19760418
Copy link

由于 rtthread 的 serial.c 驱动程序的“_serial_poll_tx”函数中,会在转义字符"\n"前,插入"\r";而RTU模式中的数据中极有可能包含“0x0A”,因此容易导致发送的数据中被插入了“0x0D”,从而导致主机端校验出错!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant