Create an iPad app that can send/receive data via the USB cable?

前端 未结 3 1228
青春惊慌失措
青春惊慌失措 2021-01-06 18:06

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 kno

相关标签:
3条回答
  • 2021-01-06 18:38

    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.

    0 讨论(0)
  • 2021-01-06 18:38

    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.

    0 讨论(0)
  • 2021-01-06 18:41

    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
    0 讨论(0)
提交回复
热议问题