【发布时间】:2019-03-10 13:09:55
【问题描述】:
我正在开发一个项目,我正在使用 beaglebone black,它通过 USB(在 MAC 上)连接到 Mini-USB(在 beaglebone 端)。
所以我要在 beaglebone 端的串行端口上读取或写入任何数据 - 我需要知道端口号。有什么方法可以找到分配给 MINI-USB 的 TTY 端口?我知道这是/dev/tty 之一。
谢谢!
debian@beaglebone:~$ ls -l /dev/ | grep tty
crw-rw-rw- 1 root tty 5, 2 Jun 17 16:08 ptmx
crw-rw-rw- 1 root tty 5, 0 Jun 17 13:18 tty
crw--w---- 1 root tty 4, 0 Jun 17 13:18 tty0
crw--w---- 1 root tty 4, 1 Jun 17 13:18 tty1
crw--w---- 1 root tty 4, 10 Jun 17 13:18 tty10
crw--w---- 1 root tty 4, 11 Jun 17 13:18 tty11
crw--w---- 1 root tty 4, 12 Jun 17 13:18 tty12
crw--w---- 1 root tty 4, 13 Jun 17 13:18 tty13
crw--w---- 1 root tty 4, 14 Jun 17 13:18 tty14
crw--w---- 1 root tty 4, 15 Jun 17 13:18 tty15
crw--w---- 1 root tty 4, 16 Jun 17 13:18 tty16
crw--w---- 1 root tty 4, 17 Jun 17 13:18 tty17
crw--w---- 1 root tty 4, 18 Jun 17 13:18 tty18
crw--w---- 1 root tty 4, 19 Jun 17 13:18 tty19
【问题讨论】:
-
尝试检查
dmesg输出。如果可能,请在此处发布。
标签: linux-kernel debian beagleboneblack tty beagleboard