对于使用嵌入式 Linux 设备进行 iPhone 无线通信有什么建议吗?

发布于 2025-01-07 16:39:01 字数 609 浏览 5 评论 0原文

我正在寻找有关 iPhone 和嵌入式 Linux 设备之间 LAN 通信中使用的协议的建议。嵌入式 Linux 设备需要以下功能...

  1. 可连接到无线 LAN。
  2. 可作为无线 LAN 上的设备被发现。
  3. (虚拟)可与 iPhone 连接。
  4. 向 iPhone 提供远程可调用 API。
  5. 能够远程回调iPhone上的功能。

我希望使用独立于平台的协议来实现此功能,因为移动应用程序将从 iPhone 移植到 Android 等其他移动平台。由于我是嵌入式 Linux 的新手,我的研究(可能是天真)表明,可以使用以下协议来实现所述功能......

  1. 用于获取动态 IP 地址的 DHCP。
  2. DNLA? (Bonjour 是 iOS 原生的,对吧?)
  3. 面向连接的通信意味着 TCP。
  4. HTTP 上的 SOAP 或 REST 架构。
  5. 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...

  1. Connectible to Wireless LAN.
  2. Discoverable as a device on the Wireless LAN.
  3. (Virtually) connectible with iPhone.
  4. Remotely Callable API provided to the iPhone.
  5. 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...

  1. DHCP for obtaining dynamic IP address.
  2. DNLA? (Bonjour is native to iOS right?)
  3. Connection-oriented communication implies TCP.
  4. SOAP or REST architecture on HTTP.
  5. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

江南月 2025-01-14 16:39:01

查看 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.

清风无影 2025-01-14 16:39:01

我做了类似的事情 - 一个 Arduino 将数据流式传输到使用 UDP 协议通过 WiFi 连接的 iPhone 应用程序。

I did something similar - an Arduino that streams data to an iPhone app connected over WiFi using the UDP protocol.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文