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

LUMOS-双目RGB相机项目:串口ttyTHS1波特率自动从9600变化为115200 #43

Closed
kimkita opened this issue Aug 29, 2023 · 1 comment

Comments

@kimkita
Copy link
Collaborator

kimkita commented Aug 29, 2023

在使用串口调试软件cutecom或是使用c语言进行串口通信,发送串口数据后,串口波特率偶然会变成115200,需要重新设置波特率为9600才能与光机进行通讯。

@kimkita
Copy link
Collaborator Author

kimkita commented Sep 5, 2023

  1. 问题出现原因:波特率会变成115200是因为所使用的ttyTHS1接口上运行着一个串口终端,如果串口接收到数据会认为是键盘数据,从而激活串口终端,这个过程中,ttyTHS1的波特率就变为了115200;验证将ttyTHS1的RX线悬空后,未出现波特率变化的异常情况;
  2. 问题解决办法:可以通过系统设置关闭ttyTHS1的串口终端功能,或是重新设计电路板使用ttyTHS2串口与光机进行通信;
  3. 设置关闭ttyTHS1的串口终端功能:
    打开文件:/etc/systemd/nvgetty.sh
    注释图中红框部分
    image

@kimkita kimkita closed this as completed Sep 5, 2023
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