3

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.

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.

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 App --> USB Cable --> Mac OSX --> Desktop App (without MFi access)

Thanks

robhayward
  • 392
  • 3
  • 10
  • Related: https://stackoverflow.com/questions/1678681/usb-programming-with-objective-c?noredirect=1&lq=1 – Cœur Mar 14 '18 at 16:57

3 Answers3

2

To use USB communication Apple does not provide any API within IOS SDK. The only option right now is MFI. I don't think Apple will allow this in near future.

codetiger
  • 2,650
  • 20
  • 37
1

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.

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).

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

Krumelur
  • 31,081
  • 7
  • 77
  • 119
  • "you need MFI" means that the developer needs MFI certification to send and receive data over the normal USB cable? Can you cite this for my education, please? I'm noticing two apps that do this and I want to know if I can do this too. THANKS! – Dan Rosenstark Dec 15 '14 at 04:01
1

Not over USB but over RS232 (serial port)

Look here: http://www.redpark.com/c2db9.html

But:

  1. The cable uses the old 30 pin connector, but according to them it's compatible with the Lightning adapter
  2. The application won't be accepted on the AppStore, it's for internal use only.
  3. There is a (small) book that explains how to use this cable to connect an iPhone directly to an Arduino, it's been published in late 2011. "iOS Sensor Apps with Arduino Wiring the iPhone and iPad into the Internet of Things" http://shop.oreilly.com/product/0636920021179.do
alecail
  • 3,993
  • 4
  • 33
  • 52