摘要 |
The present invention discloses a method, device, and system for joining a neighbor awareness device cluster. When a wireless device in a first neighbor awareness device cluster discovers a second neighbor awareness device cluster by 5 means of scanning, if it is necessary to join the second neighbor awareness device cluster, the wireless device leaves the first neighbor awareness device cluster and joins the second neighbor awareness device cluster. Because the wireless device does not belong to multiple neighbor awareness device clusters at the same time, power consumption of the wireless device is low. Meanwhile, as time progresses, when all 10 wireless devices in the first neighbor awareness device cluster leave, and join the second neighbor awareness device cluster, a discovery window of the first neighbor awareness device cluster on a working channel is no longer occupied, which increases available resources on the working channel. A wireless device in a first neighbor awareness network device cluster discovers a second neighbor awareness network device cluster The wireless device acquires attribute information of the second neighbor awareness network device cluster , 203 The wireless device No compares the attribute information, and determines whether to join the second neighbor awareness network device cluster Yes The wireless device sends, in the first neighbor awareness network device cluster, an event message for joining the second neighbor awareness network device cluster The wireless device leaves the first neighbor awareness network device cluster and joins the second neighbor awareness network device cluster Other wireless devices that are in the first neighbor awareness network device cluster and receive the event message join the second neighbor awareness network device cluster The other wireless devices determine, according to an RSSI of the event message and the number of received event messages, whether to send an event message in the first neighbor awareness network device cluster |