对于使用嵌入式 Linux 设备进行 iPhone 无线通信有什么建议吗?
我正在寻找有关 iPhone 和嵌入式 Linux 设备之间 LAN 通信中使用的协议的建议。嵌入式 Linux 设备需要以下功能...
- 可连接到无线 LAN。
- 可作为无线 LAN 上的设备被发现。
- (虚拟)可与 iPhone 连接。
- 向 iPhone 提供远程可调用 API。
- 能够远程回调iPhone上的功能。
我希望使用独立于平台的协议来实现此功能,因为移动应用程序将从 iPhone 移植到 Android 等其他移动平台。由于我是嵌入式 Linux 的新手,我的研究(可能是天真)表明,可以使用以下协议来实现所述功能......
- 用于获取动态 IP 地址的 DHCP。
- DNLA? (Bonjour 是 iOS 原生的,对吧?)
- 面向连接的通信意味着 TCP。
- HTTP 上的 SOAP 或 REST 架构。
- HTTP 上的 SOAP 或 REST 架构。
您能建议其他更合适的协议吗?我是不是找错了树?有没有更简单的方法可以实现此功能?例如,仅使用 TCP 套接字提供远程 API?
欢迎您提供任何建议...
I am looking for advice on protocols for use in LAN comms between an iPhone and an embedded Linux device. The embedded Linux device requires the following functionality...
- Connectible to Wireless LAN.
- Discoverable as a device on the Wireless LAN.
- (Virtually) connectible with iPhone.
- Remotely Callable API provided to the iPhone.
- Able to remotely call back functions on the iPhone.
I am looking to use platform independent protocols to achieve this functionality because the mobile application will be ported from the iPhone to other mobile platforms like Android. Since I am a newbie with Embedded Linux, my research (and possibly naivety) suggests that said functionality could be realised with the following protocols...
- DHCP for obtaining dynamic IP address.
- DNLA? (Bonjour is native to iOS right?)
- Connection-oriented communication implies TCP.
- SOAP or REST architecture on HTTP.
- SOAP or REST architecture on HTTP.
Can you suggest other, more suitable protocols? Am I barking up the wrong tree? Is there a much more simple way I could achieve this functionality? For example, providing the remote API using only a TCP socket?
Any advice you can offer is welcome...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 0mq。它是一个可扩展的消息传递库,无需消息代理即可提供消息队列。
-具有 Objective-C 绑定来帮助您在 iOS 中实现
- 有 java 绑定来帮助您在 Android 中实现。
-占地面积小。
Look into 0mq. It's a scalable messaging library that provides a message queue without requiring a message broker.
-Has objective-c bindings to help you implement in iOS
-Has java bindings to help you implement in Android.
-Small footprint.
我做了类似的事情 - 一个 Arduino 将数据流式传输到使用 UDP 协议通过 WiFi 连接的 iPhone 应用程序。
I did something similar - an Arduino that streams data to an iPhone app connected over WiFi using the UDP protocol.