当移动设备处于离线状态时,设备之间难以实现基于位置的信息共享。本文尝试利用Android设备搭载的Wi Fi Direct技术建立无线自组织网络的方法,实现了在该网络下位置信息的共享,并对该网络的性能进行了测试,同时考虑了设备中存在有设备与服务器连接时的信息共享情况。试验表明,该方法可在一定程度上解决因网络中断,设备之间不能进行位置等信息的共享或从服务器获取信息的问题。
It is difficult for devices to share location-based information with each other, when they are off-line. A method that builds and tests wireless ad hoe networks for Android devices based on WiFi Direct is tried, by which we implement the location-based information sharing, as well as we take the situation in which some devices in the group have a connection to the server into consideration. The test shows that the method could be a solution to the problem that devices can' t share location-based information with each other or request information from the server to some extent, which is caused by network interruption.