创建一个可以通过USB线发送/接收数据的iPad应用程序? [英] Create an iPad app that can send/receive data via the USB cable?

查看:193
本文介绍了创建一个可以通过USB线发送/接收数据的iPad应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个iPad应用程序,通过USB连接到另一台机器,笔记本电脑或其他设备,并与我在那里运行的其他应用程序通信。

I want to create an iPad app that connects to another machine, laptop or otherwise, via USB and communicates to some other application I develop running there.

我知道这很容易通过蓝牙或WiFi实现,但这一系列解决方案必须通过USB线完成。

I know that this is easy to achieve via Bluetooth or WiFi but this particular set of solutions must be done via a USB cable.

是否可以在不访问Apple的情况下这样做MFi计划? (我大约5周后,反应看起来不太好。)

Is it possible to do so without access to the Apple MFi program? (I am about 5 weeks in and the response is not looking good).

iOS应用程序 - > USB线 - > Mac OSX - >桌面应用程序(无MFi访问)

iOS App --> USB Cable --> Mac OSX --> Desktop App (without MFi access)

谢谢

推荐答案

要使用串行通信,你你可能已经发现需要MFI。但是,有一个穷人的方法来实现这一目标。我在开发期间已经这样做了。

To use serial communication, you need MFI as you may have discovered. However, there is a poor man's way of achieving this. I have done so during development.

在您的设备上启用Internet共享并连接到它。在Mac上使用ifconfig找出要使用的界面。您不需要将其用作默认连接,但需要处于活动状态。如果我没记错的话,只有一端可以发起连接(这是一段时间,所以我很抱歉我不记得细节)。

Enable "Internet sharing" on your device and connect to it. Use "ifconfig" on your Mac to find out the interface to use. You do not need to use this as the default connection, but it needs to be active. If I remember correctly, only one end can initiate connections (it was a while so I am sorry that I don't remember the details).

编辑: 我还想指出,我是在iPhone上做的,而不是iPad。

I would also like to point out that I did this on an iPhone, not an iPad.

这篇关于创建一个可以通过USB线发送/接收数据的iPad应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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