gpt4 book ai didi

python - 使用 TI Chronos 在 Python 中打开端口时出错

转载 作者:太空狗 更新时间:2023-10-29 22:00:16 26 4
gpt4 key购买 nike

我正在尝试从 TI Chronos 获取加速度计数据。运行代码时出现以下错误消息:

Traceback (most recent call last):
File "C:\Python32\chronos_accel.py", line 50, in <module>

.

.

.

raise SerialException("could not open port %s: %s" % (self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port COM4: [Error 5] Access is denied.

为什么访问被拒绝?我是系统管理员。会不会是代码有问题?

最佳答案

我想通了。这很简单。

我刚刚禁用了 Device Manager 中的 COM 端口窗口并再次启用它。

关于python - 使用 TI Chronos 在 Python 中打开端口时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6105182/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com