Pyserial does not play well with virtual port

后端 未结 2 1041
既然无缘
既然无缘 2021-02-05 21:32

Motivation

I want to start leraning how to use the python library Pyserial. It seems like a really nice library that works for a lot of people. I want t

2条回答
  •  余生分开走
    2021-02-05 22:20

    To make this Q&A complete, this is a solution (as found in the link by Austin Philips):

    #!/usr/bin/env python
    import serial
    
    ser = serial.Serial('/dev/pts/2', 9600, rtscts=True,dsrdtr=True)
    

    See this PySerial Github issue for more explanation.

提交回复
热议问题