Steve
Steve

Reputation: 6362

How to connect an iOS device to a custom USB device?

I'm developing a custom electronic device - think of it as a special kind of data logger, and I need to connect a computer to it to configure it and to extract the data.

I know I can do this without too much trouble on a PC, but I'd like to use an iOS device to do this.

Two questions:

Can I do this with a regular dock connector / USB cable? Will the EA framework let me do all the communicating?

Once I have extracted the data, what's the best way to get that out of the iPad? Make an email with it, save to a dropbox or something?

Thanks!

Upvotes: 8

Views: 16126

Answers (4)

NHDaly
NHDaly

Reputation: 8076

If you're doing very light communication, you might be able to get away with using the headphone jack.

Apps communicate to the headphone port through the various audio frameworks on iOS. AVFoundation is a high-level abstract framework to do various audio operations, but for fine-tuning the communication to a device over this interface, you will likely be using the C-language callback-based Audio Queue Services framework to do audio I/O.

This is nice because your device can be cross-platform (iOS, Android, Mac/PC) as long as you write the corresponding software, and because you don't need to go through Apple's MFi approval program. Think like the Square credit card scanner.

Upvotes: 4

teriiehina
teriiehina

Reputation: 4761

You will have to write the communication stack between the device and your iOS device but yes, you can.

there's very few docs about using the EA.framework. All the juicy parts are in the Mfi program but Apple is very strict about giving access to it.

So if you succeed, sharing a tuto will make you a EA hero ;)

About sharing your data, imho, email + CSV is a winning combo.

Upvotes: 2

Joachim Isaksson
Joachim Isaksson

Reputation: 180987

Afaik, you need to join the MFi program to make USB accessories for iPad/iPhone. That will give you all the technical resources needed.

As for data transfer there are only "opinions", I say the more options of sending, the better. Just don't force the user to choose more than once, then make it changeable in settings.

Upvotes: 6

Nathan
Nathan

Reputation: 115

If you want to plug something into the dock connector, you want to have a look at https://developer.apple.com/programs/mfi/

Upvotes: 1

Related Questions