为 iPhone 创建硬件以连接外部设备.阿杜诺? [英] create hardware for iphone to connect with external device. arduino?

查看:23
本文介绍了为 iPhone 创建硬件以连接外部设备.阿杜诺?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个简单的连接器.我想我可能需要创建一个 arduino 板来从应用程序中获取数据,然后将它们传输到外部设备.

hi i need to create a simple connector. I think i may need to create an arduino board that will take data from the application and then transmit them to an external device.

应用程序中有一个滑块,用户可以对其进行调整.调整滑块时,应用程序只会将值从应用程序发送到我需要建立的连接,该连接将连接到外部设备.

There is a slider in the application which the user can adjust. When adjusting the slider the application will just send in values from the application to the connection that i need to make which will connect to the external device.

第 1 步: 如何对 ipad 应用程序进行编程以使其传输到连接器?必须有一些api来实现这一点.

Step 1: How do i program the ipad application so that it will transmit to the connecter? there must be some api to achieve this.

第 2 步: 我需要使用什么来创建连接器(一个电路板,它将读取传入的简单字符串数据,然后将一个整数传回外部设备)所以我的 iphone 可以和它通信吗?

Step 2: What do i need to use to create the connecter (a circuit board which will read the simple string data coming in and then transmit say an integer back out to the external device) so that my iphone can communicate with it?

我真的需要这方面的帮助.我以前从未这样做过,但我需要完成它.

I really need help with this one. Ive never done this before but i need to get this done.

推荐答案

为了访问开发使用 Dock 连接器与外部硬件通信的应用程序所需的 API,您已成为 Apple 的 Made for iPhone 的成员程序.这不是一个特别简单的过程.

In order get get access to the APIs necessary to develop apps that use the dock connector to talk to external hardware, you have become a member of Apple's Made for iPhone program. It's not a particularly simple process.

您最好设计一款可以使用 WiFi 与 iPhone 通话的设备,然后您就可以使用标准的网络 API,而无需 Apple 的任何特殊许可.

You're better off designing a device that can use WiFi to talk to the iPhone, then you can use the standard networking APIs and don't need any special permission from Apple.

这个答案现在已经有 5 年多的历史了.您仍然需要在 MFi 程序中才能使用 Dock 连接器.但是,在这一点上,大多数情况下,蓝牙 4.0 是制作可与自定义 iPhone 应用程序通信的硬件的最简单方法.

This answer is 5+ years old now. It's still true that you need to be in the MFi program to use the dock connector. However, at this point, most of the time Bluetooth 4.0 is the easiest way to make hardware that can communicate with a custom iPhone app.

这篇关于为 iPhone 创建硬件以连接外部设备.阿杜诺?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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