macos - CP2102 设备未在 macOS 10.13 上的/dev 中列出

标签 macos driver hardware iot virtual-serial-port

我有带有 Silicon Labs CP2102 Controller 的 ESP32 板。当我将它连接到我的 MacBook 时,我可以使用命令 system_profiler SPUSBDataType 获取有关此设备的详细信息,但未在 /dev 中列出作为虚拟串行端口 - 所以我无法与它通信。

    CP2102 USB to UART Bridge Controller:

      Product ID: 0xea60
      Vendor ID: 0x10c4  (Silicon Laboratories, Inc.)
      Version: 1.00
      Serial Number: 0001
      Speed: Up to 12 Mb/sec
      Manufacturer: Silicon Labs
      Location ID: 0x14200000 / 5
      Current Available (mA): 500
      Current Required (mA): 100
      Extra Operating Current (mA): 0

我正在使用从 https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers 下载的官方驱动程序.

任何想法如何使它在 /dev 中可见?我还在同一台计算机上安装了 Windows,它可以正常工作,因此硬件和 USB 电缆都可以。

最佳答案

我发现 macOS High Sierra 阻止了 SiLabs 内核扩展。

以下是允许此扩展的步骤:

  • 转到“系统偏好设置”->“安全和隐私”
  • 在窗口底部,您将看到一条消息“来自开发商“SiLabs”的系统软件被阻止加载。”
  • 点击“允许”按钮
  • 重启 Mac

  • 现在我的设备被列为 /dev/cu.SLAB_USBtoUART一切都按预期工作。

    关于macos - CP2102 设备未在 macOS 10.13 上的/dev 中列出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47109036/

    相关文章:

    ios - 方法签名返回值 "Class of type or subclass class"

    macos - 键盘媒体击键无法捕捉?

    cocoa - 通过 UUID 查找卷

    assembly - 如何判断电脑是否有组装中的XT/AT键盘?

    ios - Mac OS X 上的 CGContextShowText 异常。iOS 上正常

    driver - 如何从一个 GSM 调制解调器到另一个进行语音通话

    opengl - glMapBuffer()和glBuffers,使用(void *)访问如何与硬件一起工作?

    android - 无法通过 adb 在 Ubuntu 9.10 上访问 Motorola Milestone(HTC Magic 工作得很好)

    linux - 音频驱动程序基地址、DMA 和 IRQ

    android - 从哪里开始使用 I2C 的 Android 驱动程序