Objective-C 串行 - Mac OS X [英] Objective-C Serial - Mac OS X

查看:40
本文介绍了Objective-C 串行 - Mac OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在终端中运行以下命令以通过 USB 串行发送命令.

I'm currently running the followin in Terminal to send a command over USB serial.

/Users/drummerboyx/Library/Scripts/arduino-serial -b 9600 -p /dev/tty.usbserial-A800ev0Z -s 1

有没有办法在 Objective-C 中做到这一点?

Is there a way to do this in Objective-C?

推荐答案

一些 google-fu 发现:

Some google-fu found:

  • Serial Communication Cocoa Framework (on arduino.cc!)
  • AMSerialPort

我对它几乎一无所知,但名称 "IOKit" 听起来也很有希望......

I know pretty much nothing about it, but the name "IOKit" also sounds pretty promising...

这篇关于Objective-C 串行 - Mac OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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