开发者

How to integrate iPhone with other non iPhone devices using serial port?

Anybody knows how to integrate iPhone with other开发者_StackOverflow社区 non-iPhone devices using serial port?


You can't directly. There may be some sort of serial line (i2c) on the dock connecter, but it is not exposed through the SDK, the Made for iPhone/ExternalAccessory.framework stuff is only for USB and BT.

You could conceivably use a WiFi/serial bridge (such things do exist) since you can send whatever you want over a TCP tunnel, but I doubt that is what you want.


Underlying ExternalAccessoryFramework for 30-pin connector it's the real UART handshaking (using Tx, Rx, Gnd, Vcc and some detect pins and no flow control) but not USB. Those pins of USB are only used for iTunes, Xcode and powering. The iOS app does not need to understand UART and only needs to send/receive bytes through NSOutputStream and NSInputStream.

But you need to pay Apple for MFi(Made For iPhone) Program first and buy some confidential IC to enable your accessory to communicate with iOS. They will require you to propose a product plan and expected sales and consider whether they would accept you as a MFi manufacturer.


You can get the info on using the ExternalAccessory framework from apple's developer portal.

You can't get the required serial handshake(?) info without joining the Made for iPhone program. This requires that you are developing a commercial device.

I have tried to get information on this protocol from apple through my university and have thus far failed.


I successfully received serial communication from the Arduino on the iPhone. I made a google doc explaining my process.

https://docs.google.com/document/d/1Yi9_hcw8XSyYNCG2OJT9oHlTG-dC-Dnuc58VIULa81Q/edit

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜