Mac 命令行 - 列出可用的串行端口? [英] Mac Command Line - List Available Serial Ports?

查看:33
本文介绍了Mac 命令行 - 列出可用的串行端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Mac 上,我目前有可用的串行端口:

on my Mac, i currently have the available serial ports:

  • /dev/tty.usbserial-A700dYoR
  • /dev/cu.usbserial-A700dYoR
  • /dev/tty.Bluetooth-PDA-Sync
  • /dev/cu.Bluetooth-PDA-Sync
  • /dev/tty.蓝牙调制解调器
  • /dev/cu.蓝牙调制解调器

是否可以从命令行(终端)检索计算机可用串行端口的列表?

is it possible to retrieve a list of the available serial ports of the computer from the command line (terminal)?

推荐答案

啊……不过比我简单多了.

ah... it is much easier than i though.

ls /dev/tty.*
ls /dev/cu.*

将列出

  • /dev/tty.usbserial-A700dYoR
  • /dev/tty.Bluetooth-PDA-Sync
  • /dev/tty.蓝牙调制解调器
  • /dev/cu.usbserial-A700dYoR
  • /dev/cu.Bluetooth-PDA-Sync
  • /dev/cu.蓝牙调制解调器

这篇关于Mac 命令行 - 列出可用的串行端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆