简体   繁体   English

从应用程序将设备连接到iPad的最简单方法是什么?

[英]What is the simplest way to connect a device to an iPad from an application?

I am working on a major product release for my company. 我正在为我公司的主要产品发布工作。 We are designing a new device that we would like to integrate into an iOS app. 我们正在设计一个我们想要集成到iOS应用程序中的新设备。 (FYI, we have recently been accepted into the Apple MFi program so we are past that step.) (仅供参考,我们最近已被Apple MFi计划接受,因此我们已经过了这一步。)

What we desire is to create a hardware/software eco-system where our users can start our iPad app (yes, it is specific to the iPad and the not iPhone or iPod Touch devices) and the application will automatically discover and link up with any close-proximity hardware that we've developed. 我们希望创建一个硬件/软件生态系统,我们的用户可以启动我们的iPad应用程序(是的,它专用于iPad而不是iPhone或iPod Touch设备),应用程序将自动发现并链接任何我们开发的近距离硬件。

This means that I will need to implement some form of device connection process on both the iPad and within the hardware. 这意味着我需要在iPad和硬件中实现某种形式的设备连接过程。

Is there any way to code automatic connectivity to a Bluetooth device from within an iOS application? 有没有办法在iOS应用程序中编码自动连接到蓝牙设备?

I am aware of the Core Bluetooth Framework which has this capability, however, it only works with the new iPhone 4S. 我知道具有此功能的Core Bluetooth Framework,但它只适用于新的iPhone 4S。 That's not an option. 那不是一个选择。

I've also researched about the External Accessory Framework, which can be used to connect to external devices whether they are connected via the iPod port or Bluetooth. 我还研究了外部附件框架,它可用于连接外部设备,无论它们是通过iPod端口还是蓝牙连接。 This is an option but, if my understanding is correct, our hardware must already be paired with iPad before the iOS software can connect to it. 这是一个选项,但是,如果我的理解是正确的,我们的硬件必须已经与iPad配对才能连接到iOS软件。 This is less than preferable because although many of our devices may not be in immediate vicinity at one point in time, our customers could potentially own 100's devices that they may desire to connect to with our software. 这不是优选的,因为尽管我们的许多设备可能在某个时间点不在附近,但我们的客户可能拥有他们可能希望与我们的软件连接的100个设备。

What are my reasonable options or alternatives? 我的合理选择或替代方案是什么? The end goal is to provide a very easy means for our users to be able to connect to our devices, from within our software, on an iPad. 最终目标是为我们的用户提供一种非常简单的方法,使他们能够从我们的软件和iPad上连接到我们的设备。

NOTE: I MUST NOT jailbreak the iPad or break any Apple TOS agreements. 注意:我不能越狱iPad或违反任何Apple TOS协议。

UPDATE (3-7-2012) I saw today that the 'New iPad' (as it is being officially called) will be Bluetooth 4.0 capable . 更新(2012年3月7日)我今天看到'新iPad'(正式被称为)将支持蓝牙4.0 I assume this means that this iPad device will be able to use the Core Bluetooth Framework. 我认为这意味着这款iPad设备将能够使用Core Bluetooth Framework。 This doesn't immediately solve my problem because we do want remain compatible with at least the "last generation" iPad device, but this is worth pointing out for others who may be looking for such an answer. 这并没有立即解决我的问题,因为我们确实希望至少与“上一代”iPad设备保持兼容,但是值得指出可能正在寻找这样一个答案的其他人。

One of your alternatives would be going WiFi (AdHoc or Infrastructure) with Bonjour. 您的其中一个选择是与Bonjour一起使用WiFi(AdHoc或基础设施)。 For example you would be able to detect the device nearby (if it is maintaining it's own AdHoc then by SSID; if it's in infrastructure network then by service being announced). 例如,您将能够检测附近的设备(如果它是通过SSID维护它自己的AdHoc;如果它在基础设施网络中,则通过服务被宣布)。 One big drawback would be that you couldn't connect directly (from app) to the device's network - user would have to do it manually. 一个很大的缺点是你无法直接(从应用程序)连接到设备的网络 - 用户必须手动完成。

As for BT: big drawback is lack of a serial protocol (not implemented in iPhone/iPod/iPad). 至于BT:缺点是缺乏串行协议(未在iPhone / iPod / iPad中实现)。

You cannot connect an iOS device to a bluetooth device without pairing first. 如果没有先配对,您无法将iOS设备连接到蓝牙设备。 It is purposely built that way by Apple to reduce the likelihood that someone could connect a bluetooth device without the user knowing about it. 它是由Apple专门用来减少某人在没有用户知道的情况下连接蓝牙设备的可能性。 If pairing each device is unacceptable (and it sounds like it is), and you don't want to develop a dongle, the only remaining path I can see is to make your devices capable of relaying data between them like a mesh network. 如果将每个设备配对是不可接受的(听起来像是这样),并且您不想开发加密狗,我唯一能看到的剩余路径就是让您的设备能够像网状网络一样在它们之间传输数据。 That way the user would only have to pair with a single device, and that paired unit would relay communications between the other devices and the iPad. 这样,用户只需要与单个设备配对,并且该配对单元将中继其他设备和iPad之间的通信。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从iOS设备流向Wowza服务器的最简单方法是什么? - What is the simplest way to stream from an iOS device to a Wowza server? 在iPhone应用程序中实现Facebook和Twitter连接的最简单方法是什么? - What is simplest way to implement facebook and twitter connect in iphone app? 使用MonoTouch检索iOS设备的设备序列号的最简单方法是什么? - What is the simplest way to retrieve the device serial number of an iOS device using MonoTouch? 将来自Core Data的调整大小的图像插入UICollectionView的最简单方法是什么? - What is the simplest way to insert resized images from Core Data into a UICollectionView? 如何从终端在iPhone或iPad(真实设备)上启动任何应用程序 - How to launch any application on iPhone or iPad (real device) from terminal 在iPad设备上运行iOS应用程序 - Run iOS application on iPad device 在iPad应用程序开发中进行多方位视图处理的确切方法是什么? - What is the exact way for view handling in multiple orientation in iPad application development? iPad应用程序在安装到设备时被卡住 - iPad application is stuck while installing into the device iOS 5从应用程序发送电子邮件的最简单方法 - iOS 5 simplest way to send email from an app 从iPad远程卸载应用程序 - Remotely uninstalling application from iPad
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM