如何使用 Mac OS X 连接到 Linux USB 串行小工具?

MiK*_*iKy 6 usb serial-port macos

我有一个嵌入式设备,在该设备上我使用USB 小工具USB 接口使其可用作大容量存储设备,或使用该g_serial模块启用 USB 串行访问。

虽然我可以modprobe usbserial在 Linux 上连接到设备,但如何在 Mac 上连接?它只给我以下内容:

$ ls /dev/tty.*
/dev/tty.Bluetooth-Modem    /dev/tty.Bluetooth-PDA-Sync
Run Code Online (Sandbox Code Playgroud)

这是来自dmesg,不确定它是否与设备有关:

USBF:   10410.547   AppleUSBEHCI[0xffffff801379c000]::Found a transaction which hasn't moved in 5 seconds on bus 0xfd, timing out! (Addr: 0, EP: 0)
USBF:   10416.549   AppleUSBEHCI[0xffffff801379c000]::Found a transaction which hasn't moved in 5 seconds on bus 0xfd, timing out! (Addr: 0, EP: 0)
USBF:   10417. 84   [0xffffff80138a7000] The IOUSBFamily was not able to enumerate a device.
USBF:   10422.789   [0xffffff80138a7000] The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 2 of Hub at 0xfd100000)
Run Code Online (Sandbox Code Playgroud)

har*_*ymc 0

Linux(本机)可能有正确的驱动程序,但 OS X 则不然。

对于本机 Linux 和 OS X,lsusb如果您尝试按照本文进行操作,将有助于了解 的输出以及会发生什么情况。

两者之间的差异可能具有启发性。