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

拥有回忆 提交于 2019-12-12 04:25:33

问题


Anybody knows how to integrate iPhone with other non-iPhone devices using serial port?


回答1:


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.




回答2:


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.




回答3:


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.




回答4:


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



来源:https://stackoverflow.com/questions/1678789/how-to-integrate-iphone-with-other-non-iphone-devices-using-serial-port

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!