在 ad hoc wifi windows 移动设备之间进行通信的更好方法
我们正在 Windows Mobile 6 设备上使用 802.11 在 ad hoc 模式下开发无线 ad hoc 通信应用程序。 我们使用 HP iPAQ 910 设备和 OpenNETCF 智能设备框架 2.3 进行开发。
作为设计约束,每个设备都表示为一个 SSID。 如果两个设备想要相互通信,发起方会切换到其他设备的 SSID 并广播 UDP 消息。 然而,此切换需要 4-5 秒才能完成,并且在某些情况下花费这么多时间可能是不合需要的。 我们想知道是否有更好更快的方式让两个设备进行通信,并且我们可以避免切换 SSID?
如果需要更多信息,请告知我们。 在此先感谢您的帮助!
We are developing wireless ad hoc communication applications on windows mobile 6 devices using 802.11 in ad hoc mode. We are using HP iPAQ 910 devices and OpenNETCF smart device framework 2.3 for development.
As a design constraint, each device is represented as an SSID. If two devices want to communicate with each other, initiator switches to other device's SSID and broadcasts UDP messages. However this switching takes 4-5 seconds to complete and spending this much time might be undesirable in some cases. We were wondering whether there is a better and faster way in which two devices can communicate, something for which we can avoid switching SSIDs?
Please let us know if any more information is required. Thanks in advance for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在同一个 SSID 上运行它们。 每一台设备都需要配置一个唯一的静态 IP 地址。 然后,您可以根据 IP 将消息发送到您想要的任何人,无需切换(即它是即时的)。 这种方法还允许您同时与多个设备进行通信。 您甚至可以使用 UDP 广播功能同时与所有这些人交谈,尽管我不确定当您在临时网络上时它是如何工作的。
我曾经构建了一个系统,该系统在临时模式下使用 iPAQ 和笔记本电脑来完成我刚才描述的操作。 连接到笔记本电脑的操纵杆用于远程控制由 iPAQ 指挥的机器人。
You should run them all on the same SSID. Each one will need to be configured with a unique static IP address. You can then send your messages to whichever one you want based on the IP, no switching required (i.e. it's instant). This approach will also allow you to communicate with multiple devices at the same time. You might even be able to use the UDP broadcast feature to talk to all of them at once, though I'm not sure how that works when you're on an ad hoc network.
I once built a system that used an iPAQ and a laptop both in ad hoc mode to do exactly what I just described. A joystick attached to the laptop was used to remotely control a robot which was directed by the iPAQ.