讨论广场 问答详情
N97 GPIO中的UART在Ubuntu22.04的使用问题
  2024-06-19 18:37:54
267 评论 分享
linux

平台:哪吒派N97

已经安装了up-boards的驱动,可以通过screen接收到串口数据。

尝试使用python操作串口,但是官方的MRAA/UPM似乎没有ubuntu22.04的支持版本。

用pyserial库出现如下报错:

serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

代码运行时确认没有其它设备占用串口

 

267 评论 分享
写回答
全部评论(1)

python请用MRAA

https://python-periphery.readthedocs.io/en/latest/gpio.html

2024-07-10 16:01:10