【问题标题】:MacOS: programmatically finding serial ports?MacOS:以编程方式查找串行端口?
【发布时间】:2011-12-26 02:11:11
【问题描述】:

MacOS 中是否有一个库调用来列出可用的串行端口和每个端口的设置?希望某些东西可以在某个时候以最小的难度移植到 iOS。

如果可能的话,我不想system("ls /dev/tty.*")system("stty ...")

【问题讨论】:

    标签: ios macos serial-port


    【解决方案1】:

    您使用 IOKit 调用来查找串行端口。

    请参阅:DocumentationSample Code

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多