【问题标题】:Coral Dev Board Mini with Enviromental Sensor Board GPIO problems带有环境传感器板 GPIO 问题的 Coral Dev Board Mini
【发布时间】:2021-10-01 21:33:33
【问题描述】:

我将环境传感器板与我的 Google Coral Dev Board Mini 一起使用。 并且所有直接在板上的 GPIO 调用都会导致同样的错误,在这个例子中

from periphery import GPIO
gpio = GPIO(138, "low")

OSError: [Errno 22] Invalid argument
periphery.gpio.GPIOError: [Errno 22] Exporting GPIO: Invalid argument

详情:

Linux 4.19.125-mtk #1 SMP PREEMPT Thu Dec 10 02:36:13 UTC 2020 aarch64

Mendel GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
mendel@zippy-orange:~$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from periphery import GPIO
>>> gpio = GPIO(138, "low")
OSError: [Errno 22] Invalid argument

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/periphery/gpio.py", line 1007, in _open
    f_export.write("{:d}\n".format(line))
OSError: [Errno 22] Invalid argument

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.7/dist-packages/periphery/gpio.py", line 988, in __init__
    self._open(line, direction)
  File "/usr/local/lib/python3.7/dist-packages/periphery/gpio.py", line 1009, in _open
    raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
periphery.gpio.GPIOError: [Errno 22] Exporting GPIO: Invalid argument
>>>

我对 Google enviro_demo.py 有同样的问题: enviro = EnviroBoard() 同样的错误。

有什么想法吗?几分钟前,一切都是从头开始安装的:)。 谢谢。

最好, 弗兰克

【问题讨论】:

  • 基于libgpiod 的代码在这块板上是否有效? libgpiod shell 工具有用吗?
  • 我认为它不是必需的,但它对调试有好处,所以我安装了它。看起来董事会没有找到可能是 DOA,尤其是。 EnviroBoard 上的小 LED 不亮...
  • 确保您的内核为用户空间提供必要的接口(GPIO 字符设备)。
  • 这个闪到板上的图像/内核由谷歌提供,我真的希望他们这样做:) 板的文档很简单:[链接]coral.ai/docs/enviro-board/get-started/…gpioinfo 列出了一个@ 987654328@ 有一些用过的线,但不是必需的。

标签: python gpio arm64 google-coral


【解决方案1】:

总的来说,我从 Coral 支持中得到了这个答案:

“[...]我在这里与团队进行了讨论,并了解到 Dev board mini 和 Enviro board 目前不能一起工作。

我们没有关于何时支持这种组合的时间表。

感谢珊瑚支持团队 [...]"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-10-16
    • 2022-09-24
    • 1970-01-01
    • 2022-01-15
    • 2012-04-21
    • 1970-01-01
    • 2020-09-01
    • 1970-01-01
    相关资源
    最近更新 更多