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

多串口同时接收和发送数据怎样做? #44

Closed
master5277 opened this issue Jan 25, 2024 · 2 comments
Closed

多串口同时接收和发送数据怎样做? #44

master5277 opened this issue Jan 25, 2024 · 2 comments

Comments

@master5277
Copy link

抱歉,再次打扰您了,我的情况是这样的:我已经成功实现了使用您的代码完成了单个串口的读写操作,通过读线程来接收数据,通过写线程来发送数据,并且使用SerialHelper类创建了三个实例对象分别管理三个串口的读写操作,希望能够实现三个串口的同时发送和接收数据,但是我在开启了一个串口的发送和接收之后,第二个串口就不可以实现正常的发送和接收了,请问应该按照怎样的思路才可以实现三个串口的同时接收和发送数据?

@xmaihh
Copy link
Owner

xmaihh commented Jan 29, 2024

当初设计该库时,主要关注单个串口的读写操作,并没有考虑到多串口同时使用的需求。您可以尝试使用其他可用的串口库、查找第三方库或框架来支持多串口并发操作,或者考虑自行开发一个满足需求的库。

@master5277
Copy link
Author

谢谢

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

2 participants