在ad hoc wifi Windows移动设备之间进行通讯的更好方法 [英] better way to communicate between ad hoc wifi windows mobile devices

查看:123
本文介绍了在ad hoc wifi Windows移动设备之间进行通讯的更好方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在ad hoc模式下使用802.11在Windows Mobile 6设备上开发无线ad hoc通信应用程序.我们正在使用HP iPAQ 910设备和OpenNETCF智能设备框架2.3进行开发.

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.

作为设计约束,每个设备都表示为一个SSID.如果两个设备要相互通信,启动器将切换到另一个设备的SSID并广播UDP消息.但是,此切换需要4-5秒才能完成,因此在某些情况下可能不希望花费这么多时间.我们想知道两个设备之间是否有更好,更快的通信方式,可以避免切换SSID?

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!

推荐答案

您应该在相同的SSID上全部运行它们.每一个都需要配置一个唯一的静态IP地址.然后,您可以根据IP将消息发送到任何您想要的消息,而无需进行任何切换(即即时).这种方法还使您可以同时与多个设备进行通信.您甚至可以使用UDP广播功能一次与所有这些用户进行对话,尽管我不确定在临时网络中该协议如何工作.

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.

我曾经构建了一个系统,该系统在临时模式下使用iPAQ和笔记本电脑来完全按照我的描述进行操作.连接到笔记本电脑的操纵杆用于远程控制由iPAQ指挥的机器人.

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.

这篇关于在ad hoc wifi Windows移动设备之间进行通讯的更好方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆