using serial port in python3 asyncio

后端 未结 8 2027
长情又很酷
长情又很酷 2021-02-08 09:39

i\'m trying and, so far, failing to use python asyncio to access a serial port.

i\'d really appreciate any tips on using the new python async framework on a simple fd.

8条回答
  •  野性不改
    2021-02-08 10:10

    Thanks for the suggestions all, in the end, I solved the problem in a slightly different way, and used the well supported socket connections in asyncio, but then used ser2net (http://sourceforge.net/projects/ser2net/) to access the serial ports.

    This took about 10 seconds to configure, and means that the python code can now handle accessing remote serial ports too.

提交回复
热议问题