简体   繁体   中英

How can i share a serialport between 2 different processes in Python

Have a linux setup, where I need 2 Python processes to use the same comport, how can I easily share that serial port resource between to separate processes? Its only the server program that need to open the serial port and then the client shall connect to server and use the same serial port. Shall i go after socket or something else? Any point to code example will be appreciated. Br Esben

我的解决方案是构建一个处理串行流量的多处理服务器,然后通过来自我的客户端程序的队列向服务器发送消息和从服务器发送消息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM