如何打开FTDI串行端口ttyUSBx,以便我们可以在其中运行2个应用程序? [英] how do you open FTDI serial ports ttyUSBx such that we can run 2 applications on it?

查看:57
本文介绍了如何打开FTDI串行端口ttyUSBx,以便我们可以在其中运行2个应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写python pyserial应用程序,需要对其进行调试.除了提示,它没有收到任何东西.我想在相同的tty上打开一个并行的minicom,并能够看到端口rx.没有硬件日志记录这可能吗?我可以简单地使用串行设置来允许 2 个应用程序在 ttyUSB0 上同时运行吗?

I am writing a python pyserial app and need to debug it. It is not getting anything on its rx beyond the prompt. I would like to open up a parallel minicom on same tty and be able to see the port rx. Is this possible without hardware logging ? Can I simply use a serial settings to allow 2 apps to run simultaneously on ttyUSB0 ?

推荐答案

简短的回答:不,您不能同时从两个进程访问串行端口.

Short answer: No, you can't access your serial ports from two processes at the same time.

有一些变通方法可以为您提供比购买硬件嗅探器或具有串行解码功能的示波器便宜得多的解决方案.

There are workarounds that can give you a much cheaper solution than purchasing a hardware sniffer or a scope with serial decoding capabilities though.

您将必须定义几个虚拟串行端口并使用端口转发.此过程已在此处进行了解释:在 1

You will have to define a couple of virtual serial ports and use port forwarding. This procedure has been explained here: on Linux and Windows 1, 2.

这篇关于如何打开FTDI串行端口ttyUSBx,以便我们可以在其中运行2个应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆