WO2019137310A1 - Wireless fidelity aware group broadcasting method, core device, and member device - Google Patents

Wireless fidelity aware group broadcasting method, core device, and member device Download PDF

Info

Publication number
WO2019137310A1
WO2019137310A1 PCT/CN2019/070452 CN2019070452W WO2019137310A1 WO 2019137310 A1 WO2019137310 A1 WO 2019137310A1 CN 2019070452 W CN2019070452 W CN 2019070452W WO 2019137310 A1 WO2019137310 A1 WO 2019137310A1
Authority
WO
WIPO (PCT)
Prior art keywords
broadcast
group
period
sequence number
duration
Prior art date
Application number
PCT/CN2019/070452
Other languages
French (fr)
Chinese (zh)
Inventor
郝志坚
曹广
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019137310A1 publication Critical patent/WO2019137310A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management

Definitions

  • the present disclosure relates to, but is not limited to, the field of mobile communication technologies.
  • WiFi Aware technology is used to help users discover peripherals, applications and information before establishing a WiFi connection.
  • WiFi Aware's "peripheral awareness" technology can run continuously in the background, sending a small amount of data messages intermittently, and the upper application can call this function to discover the surrounding application services. And this does not require the user to take the initiative to operate, after the service is discovered, the user can launch the application, establish a connection through WiFi Direct or traditional WiFi, and enable the corresponding application and service.
  • WiFi Aware further enhances the convenience of social and location applications such as WiFi-based games, peer-to-peer messaging, distance assessment, media sharing and promotional push.
  • Devices in the WiFi Aware group can communicate messages to each other by broadcast.
  • a WiFi Aware group broadcast method including: receiving and parsing first broadcast information sent by a group member device, where the first broadcast information carries a device identifier of the group member device; And assigning a broadcast sequence number to the group member device according to the device identifier, and acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier; and broadcasting the group broadcast information.
  • a WiFi Aware group broadcast method including: receiving and parsing group broadcast information sent by a core device, to obtain a broadcast duration, a broadcast sequence number, and a device carried in the group broadcast information. a device identifier corresponding to the broadcast sequence number; calculating a broadcast period and a broadcast period in the broadcast period according to the broadcast duration of the device, the broadcast sequence number, a device identifier corresponding to the broadcast sequence number, and a device identifier; Broadcasting is performed according to the broadcast period and the broadcast period.
  • a WiFi Aware core device including: a receiving and parsing module configured to receive and parse first broadcast information sent by a group member device, wherein the first broadcast information carries the The device identifier of the group member device; the group period broadcast information obtaining module is configured to allocate a broadcast sequence number to the group member device according to the device identifier, and obtain the group according to the broadcast sequence number, the preset device broadcast duration, and the device identifier. a group period broadcast information; and a broadcast module configured to broadcast the group broadcast information.
  • a WiFi Aware group member device including: a receiving and parsing module, configured to receive and parse group broadcast information sent by a core device, to obtain the group broadcast information a device broadcast duration, a broadcast sequence number, and a device identifier corresponding to the broadcast sequence number; a broadcast period and a broadcast period calculation module, configured to be based on the device broadcast duration, the broadcast sequence number, and a device identifier corresponding to the broadcast sequence number a self device identifier, a broadcast period and a broadcast period within the broadcast period; and a broadcast module configured to broadcast according to the broadcast period and the broadcast period.
  • FIG. 1 is a flowchart of a WiFi Aware group broadcast method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a WiFi Aware group broadcast method according to another embodiment of the present disclosure
  • FIG. 3 is a flowchart of a group member device side in a WiFi Aware group broadcast method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a core device in a WiFi Aware group according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a group member device in a WiFi Aware group according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a WiFi Aware group broadcast method according to an embodiment of the present disclosure.
  • the WiFi Aware group broadcast method of the embodiment of the present disclosure includes steps S100 to S300.
  • step 100 the first broadcast information sent by the group member device is received and parsed, wherein the first broadcast information carries the device identifier of the group member device.
  • WiFi Aware can continuously find compatible devices and establish connections, even if there is no traditional communication network such as GPS, cellular network or hotspot connection. This means it can work in densely populated or inaccessible areas, even if the device is not connected to any network.
  • WiFi Aware Peripheral Perception technology can help a variety of applications implement service discovery by sending a very small amount of data information.
  • the core device is responsible for group group construction, and the first broadcast information sent by the group member device carries its own device identifier, and after the core device receives the first broadcast information, The device ID of the member device that is added to the WiFi Aware group is parsed for subsequent broadcast of the broadcast sequence number.
  • step 200 a broadcast sequence number is allocated to the group member device according to the device identifier, and the group period broadcast information is acquired according to the broadcast sequence number, the preset device broadcast duration, and the device identifier.
  • a broadcast sequence number When assigning a broadcast sequence number to a group member device that joins a group, it can be numbered according to the order in which the group members are added, or numbered according to various attributes of the group member device. Since the core device also needs to broadcast in the group, when the broadcast sequence number is assigned to the group member device, the broadcast sequence number needs to be simultaneously allocated to the core device.
  • the preset device broadcast duration may include the length of time each device in the group broadcasts. Within one broadcast duration, only one device can broadcast, and according to actual needs, the device broadcast duration can be flexibly set.
  • the device broadcast duration is t1 seconds.
  • the duration of a group broadcast period can be calculated based on the assigned broadcast sequence number and the preset broadcast duration. If a group includes N devices (one core device and N-1 group member devices), the duration of one group broadcast period is N ⁇ t1, that is, within the duration of N ⁇ t1, each group within the group The devices broadcast according to the broadcast sequence numbers assigned by the core devices during their respective broadcast periods.
  • the core device needs to notify the group member devices of the broadcast sequence number assigned to each group member device in a group broadcast period. Therefore, in the group period broadcast information, the broadcast sequence number, the preset device broadcast duration, and Device identification, it can be understood that the group period broadcast information includes a broadcast period.
  • the group broadcast information is broadcast.
  • the core device When the core device broadcasts in the group, it may broadcast according to the broadcast time allocated to the core device in the group period broadcast information, or may not broadcast according to the broadcast time allocated to the core device in the group period broadcast information, but
  • the group broadcast information is used as a self-defined periodic broadcast as information other than the broadcast information of each device of the group.
  • the core device receives the first broadcast information sent by the group member device to obtain the device identifier of the group member device that joins the group; and allocates the device identifier according to the group member device. Broadcasting the serial number, and acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier; then broadcasting the group broadcast information to enable the group member device to receive the broadcast according to the group broadcast information
  • the serial number is broadcast after calculating its own broadcast period to avoid broadcast conflicts of devices in the group.
  • the step of acquiring the group period broadcast information (ie, step 200) according to the broadcast sequence number, the preset device broadcast duration, and the device identifier may include: searching for the preset first correspondence according to the device identifier. And determining, by the device identifier, a broadcast duration of the device, where the first correspondence includes a correspondence between the device identifier and the broadcast duration of the device.
  • the attributes of the device corresponding to the device identifier may be acquired according to the device identifier, and different broadcast durations are allocated according to different attributes, and the attribute may be flexibly set.
  • the core device may allocate different broadcasts according to the device identifier of each group member device by searching for the preset device duration correspondence relationship.
  • the duration is to avoid the broadcast conflict of each device in the group, and take into account the actual demand of the broadcast duration of each device in the group, so that the group period broadcast message is more in line with the demand.
  • the step of acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier may further include: according to the broadcast sequence number, a preset device broadcast duration And the device identifier and the broadcast interval duration, and the group period broadcast information is acquired.
  • the broadcast interval duration can be set between each broadcast duration, for example, the broadcast interval duration is set to t2. Therefore, in a group consisting of N devices (one core device and N-1 group member devices), the duration of the group broadcast period is N ⁇ (t1 + t2), that is, at N ⁇ (t1 + t2) Within the duration of time, each device within the group broadcasts during the respective broadcast period according to the broadcast sequence number assigned by the core device, and the duration of t2 is separated between each broadcast period.
  • the broadcast interval duration is set between the broadcast durations of each device, and the broadcast conflict of each device in the group is better avoided.
  • the WiFi Aware group broadcast method further includes a broadcast group synchronization signal, the group synchronization signal including a pulse signal.
  • the broadcast group synchronization signal used to synchronize the devices can maintain accurate synchronization of devices within the group.
  • the synchronization signal may include a pulse signal, the synchronization signal may be periodically broadcasted, and the synchronization signal may be broadcast while broadcasting the group broadcast information.
  • the core device broadcasts a synchronization signal to synchronize the group member devices in the group according to the synchronization signal, thereby avoiding broadcast conflicts of each device in the group due to time out of synchronization.
  • the broadcast sequence number may be re-allocated according to all device identifiers in the first broadcast information that can be currently received. And broadcast the new group broadcast information to enable the newly joined group member device to broadcast.
  • the embodiment of the present disclosure provides a joining mechanism of a group member device, which can update the group broadcast information in time with more equipment.
  • the broadcast sequence number may be re-allocated according to all device identifiers in the first broadcast information that can be currently received, and a new group is obtained. Broadcast after broadcasting the information.
  • the embodiment of the present disclosure provides an exit mechanism of the group member device, which can improve the utilization rate of the group broadcast information.
  • FIG. 2 is a flowchart of a WiFi Aware group broadcast method according to another embodiment of the present disclosure.
  • the WiFi Aware group broadcast method includes steps S10 to S30.
  • step S10 the group broadcast information sent by the core device is received and parsed to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence carried in the group broadcast information.
  • the member device in the WiFi Aware group After receiving the group broadcast information sent by the core device, the member device in the WiFi Aware group obtains the broadcast duration of the device, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence number.
  • step S20 the broadcast period and the broadcast period in the broadcast period are calculated according to the device broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the own device identifier.
  • the group member device acquires a broadcast period and calculates a broadcast period in the group broadcast period according to the device identifier and the acquired device broadcast duration, broadcast sequence number, and device identifier corresponding to the broadcast sequence number.
  • step S30 broadcasting is performed according to the broadcast period and the broadcast period.
  • the group member device broadcasts in accordance with the calculated broadcast period, in conjunction with its own timer, during the corresponding broadcast period in each broadcast period.
  • the group member device receives the group broadcast information sent by the core device to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence number carried in the group broadcast information. Then, the broadcast period and the broadcast period in the broadcast period are calculated, and broadcast is performed according to the broadcast period and the broadcast period.
  • Each group member device in the group avoids broadcast conflicts of devices in the group by acquiring respective broadcast periods.
  • the step of calculating a broadcast period and a broadcast period in the broadcast period according to the device broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the own device identifier may include: acquiring a broadcast period in the group period broadcast information; and, in the broadcast period, according to the broadcast duration, the broadcast sequence number, a device identifier corresponding to the broadcast sequence number, and a device identifier Calculate the broadcast period.
  • the number of devices in the group to be broadcasted is determined according to the broadcast sequence number, for example, N devices need to broadcast, and then the broadcast period N ⁇ t1 is calculated according to the broadcast sequence number and the broadcast duration (for example, t1), and then according to the calculated broadcast period. And the broadcast sequence number to determine the broadcast period.
  • the group member device calculates a broadcast period and a broadcast period within the broadcast period, and broadcasts according to the broadcast period and the broadcast period.
  • Each group member device in the group avoids broadcast conflicts of devices in the group by acquiring respective broadcast periods.
  • the method on the core device side includes the following steps.
  • the core device is responsible for group formation and receives a broadcast containing a unique identifier sent by each member device.
  • the core device sends a synchronization signal every m cycles. If a device exits or a new device joins, the time interval is recalculated, and the sequence number of each device is rearranged, then the broadcast is sent to other devices, and a new synchronization signal is sent. .
  • the sync signal can be a simple pulse signal.
  • the other group member device uses the synchronization signal as a reset signal to recalculate the time window in which the device transmits the broadcast.
  • FIG. 3 is a flowchart of a group member device side in a WiFi Aware group broadcast method according to an embodiment of the present disclosure.
  • the method on the group device side includes the following steps 1 to 4.
  • step 1 the transmission start information is received.
  • the send button of the group member device is pressed, and the group member device receives the send start message.
  • step 2 when the current time is not in the broadcast period, the time length from the next broadcast period is calculated to obtain a time difference.
  • the group member device determines whether the current time is in its own broadcast period, and if the current time is in its own broadcast period, the broadcast information is transmitted. When the current time is not in its own broadcast period, the group member device calculates the duration of the next self-broadcast period that is closest to the current time, and obtains the time difference from the next broadcast period.
  • step 3 the timer is started to start timing.
  • step 4 when the timer counts the time difference, the broadcast information is transmitted.
  • the timer stops counting after the broadcast message is sent.
  • the broadcast period is calculated by setting a timer so that the group member device can transmit the broadcast information within the broadcast period belonging to itself.
  • FIG. 4 is a schematic structural diagram of a core device in a WiFi Aware group according to an embodiment of the present disclosure.
  • the core device in the WiFi Aware group of the embodiment of the present disclosure includes a receiving and parsing module 100, a group period broadcast information acquiring module 200, and a broadcasting module 300.
  • the receiving and parsing module 100 is configured to receive and parse the first broadcast information sent by the group member device, where the first broadcast information carries the device identifier of the group member device.
  • the group period broadcast information obtaining module 200 is configured to allocate a broadcast sequence number to the group member device according to the device identifier, and obtain the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier. According to an embodiment of the present disclosure, the group period broadcast information acquiring module 200 may further be configured to acquire group period broadcast information according to the broadcast sequence number, a preset device broadcast duration, the device identifier, and a broadcast interval duration.
  • the broadcast module 300 is arranged to broadcast the group broadcast information. According to an embodiment of the present disclosure, the broadcast module 300 may also be configured to broadcast a group synchronization signal, the group synchronization signal including a pulse signal.
  • the WiFi Aware group core device receives the first broadcast information sent by the group member device to obtain the device identifier of the group member device that joins the group; and assigns the broadcast sequence number according to the device identifier of the group member device. And acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier; and then broadcasting the group broadcast information so that after the group member device receives the broadcast sequence number in the group broadcast information, Broadcast after calculating its own broadcast period to avoid broadcast conflicts of devices in the group.
  • FIG. 5 is a schematic structural diagram of a group member device in a WiFi Aware group according to an embodiment of the present disclosure.
  • the group member device in the WiFi Aware group of the embodiment of the present disclosure includes a receiving and parsing module 10, a broadcast period and a broadcast period calculation module 20, and a broadcast module 30.
  • the receiving and parsing module 10 is configured to receive and parse the group broadcast information sent by the core device, to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence carried in the group broadcast information, and is further configured to Receive send start information.
  • the broadcast period and broadcast period calculation module 20 is configured to calculate a broadcast period and a broadcast period in the broadcast period according to the device broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the own device identifier.
  • the broadcast period and broadcast period calculation module 20 includes: a broadcast period acquisition unit configured to acquire a broadcast period in the group period broadcast information; and a broadcast period calculation unit configured to be within the broadcast period, according to the The broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the own device identifier are calculated, and the broadcast period is calculated.
  • the broadcast period and broadcast period calculation module 20 further includes: a time difference calculation unit configured to calculate a duration from the next broadcast period when the current time is not in the broadcast period, to obtain a time difference; and a timer start unit that is set to start The timer starts timing.
  • the broadcast module 30 is configured to perform broadcast according to the broadcast period and the broadcast period, and is further configured to transmit broadcast information when the duration of the timer count reaches the time difference.
  • the WiFi Aware group member device receives the group broadcast information sent by the core device to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence number carried in the group broadcast information, and then The broadcast period and the broadcast period within the broadcast period are calculated, and broadcasted according to the broadcast period and the broadcast period.
  • Each group member device in the group avoids broadcast conflicts of devices in the group by acquiring respective broadcast periods.
  • Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer.
  • communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .

Abstract

Disclosed are a wireless fidelity aware (WiFi Aware) group broadcasting method, a WiFi Aware core device, and a WiFi Aware member device. The method comprises: receiving and parsing first broadcast information sent by the member device, the first broadcast information carrying a device identifier of the member device; allocating a broadcast sequence number to the member device according to the device identifier, and obtaining group period broadcast information according to the broadcast sequence number, a preset device broadcast duration, and the device identifier; and broadcasting the group broadcast information.

Description

无线保真感知组群广播方法、核心设备和组员设备Wireless fidelity sensing group broadcast method, core device and group member device 技术领域Technical field
本公开涉及(但不限于)移动通信技术领域。The present disclosure relates to, but is not limited to, the field of mobile communication technologies.
背景技术Background technique
无线保真感知(WiFi Aware)技术用以帮助用户在建立WiFi连接之前发现周边设备、应用与信息。WiFi Aware的“周边感知”技术能够在后台连续运行,间歇式地发送极小量的数据消息,上层应用可以调用该功能发现周边的应用服务。而这一切并不需要用户主动操作,发现服务后,用户即可发起应用,通过WiFi Direct或传统WiFi建立连接,启用相应应用及服务。WiFi Aware进一步提高了以WiFi技术为基础的游戏、点对点消息、距离评估、媒体共享和优惠信息推送等社交及位置应用的便利性。在WiFi Aware组群的设备相互之间可通过广播传递消息。WiFi Aware technology is used to help users discover peripherals, applications and information before establishing a WiFi connection. WiFi Aware's "peripheral awareness" technology can run continuously in the background, sending a small amount of data messages intermittently, and the upper application can call this function to discover the surrounding application services. And this does not require the user to take the initiative to operate, after the service is discovered, the user can launch the application, establish a connection through WiFi Direct or traditional WiFi, and enable the corresponding application and service. WiFi Aware further enhances the convenience of social and location applications such as WiFi-based games, peer-to-peer messaging, distance assessment, media sharing and promotional push. Devices in the WiFi Aware group can communicate messages to each other by broadcast.
发明内容Summary of the invention
根据本公开的一个方面,提供一种WiFi Aware组群广播方法,包括:接收并解析组员设备发送的第一广播信息,其中,所述第一广播信息携带所述组员设备的设备标识;根据设备标识为组员设备分配广播序号,并根据所述广播序号、预设的设备广播时长和所述设备标识,获取组群周期广播信息;以及广播所述组群广播信息。According to an aspect of the present disclosure, a WiFi Aware group broadcast method is provided, including: receiving and parsing first broadcast information sent by a group member device, where the first broadcast information carries a device identifier of the group member device; And assigning a broadcast sequence number to the group member device according to the device identifier, and acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier; and broadcasting the group broadcast information.
根据本公开的另一个方面,提供一种WiFi Aware组群广播方法,包括:接收并解析核心设备发送的组群广播信息,以获取所述组群广播信息中携带的设备广播时长、广播序号和与所述广播序号对应的设备标识;根据所述设备广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算广播周期和所述广播周期内的广播时段;以及根据所述广播周期和所述广播时段进行广播。According to another aspect of the present disclosure, a WiFi Aware group broadcast method is provided, including: receiving and parsing group broadcast information sent by a core device, to obtain a broadcast duration, a broadcast sequence number, and a device carried in the group broadcast information. a device identifier corresponding to the broadcast sequence number; calculating a broadcast period and a broadcast period in the broadcast period according to the broadcast duration of the device, the broadcast sequence number, a device identifier corresponding to the broadcast sequence number, and a device identifier; Broadcasting is performed according to the broadcast period and the broadcast period.
根据本公开的另一个方面,提供一种WiFi Aware核心设备,包括:接收及解析模块,其设置为接收并解析组员设备发送的第一广播 信息,其中,所述第一广播信息携带所述组员设备的设备标识;组群周期广播信息获取模块,其设置为根据设备标识为组员设备分配广播序号,并根据所述广播序号、预设的设备广播时长和所述设备标识,获取组群周期广播信息;以及广播模块,其设置为广播所述组群广播信息。According to another aspect of the present disclosure, a WiFi Aware core device is provided, including: a receiving and parsing module configured to receive and parse first broadcast information sent by a group member device, wherein the first broadcast information carries the The device identifier of the group member device; the group period broadcast information obtaining module is configured to allocate a broadcast sequence number to the group member device according to the device identifier, and obtain the group according to the broadcast sequence number, the preset device broadcast duration, and the device identifier. a group period broadcast information; and a broadcast module configured to broadcast the group broadcast information.
根据本公开的另一个方面,提供一种WiFi Aware组员设备,包括:接收及解析模块,其设置为接收并解析核心设备发送的组群广播信息,以获取所述组群广播信息中携带的设备广播时长、广播序号和与所述广播序号对应的设备标识;广播周期及广播时段计算模块,其设置为根据所述设备广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算广播周期和所述广播周期内的广播时段;以及广播模块,其设置为根据所述广播周期和所述广播时段进行广播。According to another aspect of the present disclosure, a WiFi Aware group member device is provided, including: a receiving and parsing module, configured to receive and parse group broadcast information sent by a core device, to obtain the group broadcast information a device broadcast duration, a broadcast sequence number, and a device identifier corresponding to the broadcast sequence number; a broadcast period and a broadcast period calculation module, configured to be based on the device broadcast duration, the broadcast sequence number, and a device identifier corresponding to the broadcast sequence number a self device identifier, a broadcast period and a broadcast period within the broadcast period; and a broadcast module configured to broadcast according to the broadcast period and the broadcast period.
附图说明DRAWINGS
通过阅读下文实施方式的详细描述,各种优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various advantages and benefits will become apparent to those of ordinary skill in the art in view of this description. The drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1为根据本公开实施例的WiFi Aware组群广播方法的流程图;FIG. 1 is a flowchart of a WiFi Aware group broadcast method according to an embodiment of the present disclosure;
图2为根据本公开另一实施例的WiFi Aware组群广播方法的流程图;2 is a flowchart of a WiFi Aware group broadcast method according to another embodiment of the present disclosure;
图3为根据本公开实施例的WiFi Aware组群广播方法中组员设备侧的流程图;3 is a flowchart of a group member device side in a WiFi Aware group broadcast method according to an embodiment of the present disclosure;
图4为根据本公开实施例的WiFi Aware组群中核心设备的结构示意图;以及4 is a schematic structural diagram of a core device in a WiFi Aware group according to an embodiment of the present disclosure;
图5为根据本公开实施例的WiFi Aware组群中组员设备的结构示意图。FIG. 5 is a schematic structural diagram of a group member device in a WiFi Aware group according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the disclosed exemplary embodiments are shown in the drawings, it is understood that Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
图1为根据本公开实施例的WiFi Aware组群广播方法的流程图。FIG. 1 is a flowchart of a WiFi Aware group broadcast method according to an embodiment of the present disclosure.
如图1所示,本公开实施例的WiFi Aware组群广播方法包括步骤S100至S300。As shown in FIG. 1, the WiFi Aware group broadcast method of the embodiment of the present disclosure includes steps S100 to S300.
在步骤100,接收并解析组员设备发送的第一广播信息,其中,所述第一广播信息携带所述组员设备的设备标识。In step 100, the first broadcast information sent by the group member device is received and parsed, wherein the first broadcast information carries the device identifier of the group member device.
WiFi Aware可持续寻找兼容设备并建立连接,即便当前没有GPS、蜂窝网络或热点连接等传统通讯网络。这也就意味着它能在人口密集或是人迹罕至的区域工作,即便设备没有连接任何网络也能进行通讯。WiFi Aware周边感知技术可以通过发送极小量的数据信息来帮助多种应用实现服务发现功能。在由核心设备和组员设备组成的WiFi Aware组群中,核心设备负责组群组建,组员设备发送的第一广播信息携带自身的设备标识,核心设备接收所述第一广播信息后,解析出加入WiFi Aware组群的组员设备的设备标识,用于后续为其分配广播序号。WiFi Aware can continuously find compatible devices and establish connections, even if there is no traditional communication network such as GPS, cellular network or hotspot connection. This means it can work in densely populated or inaccessible areas, even if the device is not connected to any network. WiFi Aware Peripheral Perception technology can help a variety of applications implement service discovery by sending a very small amount of data information. In the WiFi Aware group consisting of the core device and the group member device, the core device is responsible for group group construction, and the first broadcast information sent by the group member device carries its own device identifier, and after the core device receives the first broadcast information, The device ID of the member device that is added to the WiFi Aware group is parsed for subsequent broadcast of the broadcast sequence number.
在步骤200,根据设备标识为组员设备分配广播序号,并根据所述广播序号、预设的设备广播时长和所述设备标识,获取组群周期广播信息。In step 200, a broadcast sequence number is allocated to the group member device according to the device identifier, and the group period broadcast information is acquired according to the broadcast sequence number, the preset device broadcast duration, and the device identifier.
为加入组群的组员设备分配广播序号时,可以根据组员设备的加入顺序进行编号,或根据组员设备的各种属性进行分类排序后编号。由于核心设备也需要在组群内进行广播,因此在为组员设备分配广播序号的同时,也需要为核心设备同时分配广播序号。When assigning a broadcast sequence number to a group member device that joins a group, it can be numbered according to the order in which the group members are added, or numbered according to various attributes of the group member device. Since the core device also needs to broadcast in the group, when the broadcast sequence number is assigned to the group member device, the broadcast sequence number needs to be simultaneously allocated to the core device.
预设的设备广播时长可以包括组群中的每个设备进行广播的时长。在一个广播时长内,只有一个设备可以进行广播,并且根据实际的需求,可对设备广播时长进行灵活设置。设备广播时长为t1秒。The preset device broadcast duration may include the length of time each device in the group broadcasts. Within one broadcast duration, only one device can broadcast, and according to actual needs, the device broadcast duration can be flexibly set. The device broadcast duration is t1 seconds.
根据分配好的广播序号以及预设的广播时长,可以计算出一个 组群广播周期的时长。如一个组群中包括N个设备(一个核心设备和N-1个组员设备),则一个组群广播周期的时长为N×t1,即在N×t1的时长内,组群内的每个设备根据核心设备分配好的广播序号,在各自的广播时段内进行广播。The duration of a group broadcast period can be calculated based on the assigned broadcast sequence number and the preset broadcast duration. If a group includes N devices (one core device and N-1 group member devices), the duration of one group broadcast period is N×t1, that is, within the duration of N×t1, each group within the group The devices broadcast according to the broadcast sequence numbers assigned by the core devices during their respective broadcast periods.
核心设备需要在一个组群广播周期内,将为各组员设备分配好的广播序号通知到各组员设备,因此在组群周期广播信息中,需要携带广播序号、预设的设备广播时长和设备标识,可以理解的是,组群周期广播信息包括广播周期。The core device needs to notify the group member devices of the broadcast sequence number assigned to each group member device in a group broadcast period. Therefore, in the group period broadcast information, the broadcast sequence number, the preset device broadcast duration, and Device identification, it can be understood that the group period broadcast information includes a broadcast period.
在步骤300,广播所述组群广播信息。At step 300, the group broadcast information is broadcast.
核心设备在组群内进行广播时,可以按照组群周期广播信息中分配給核心设备的广播时间进行广播,也可以不按照组群周期广播信息中分配給核心设备的广播时间进行广播,而是将组群广播信息作为一个独立于组群各设备的广播信息之外的信息,进行自定义的周期性的广播。When the core device broadcasts in the group, it may broadcast according to the broadcast time allocated to the core device in the group period broadcast information, or may not broadcast according to the broadcast time allocated to the core device in the group period broadcast information, but The group broadcast information is used as a self-defined periodic broadcast as information other than the broadcast information of each device of the group.
根据本公开实施例的WiFi Aware组群广播方法,核心设备通过接收并解析组员设备发送的第一广播信息,以获取加入组群的组员设备的设备标识;根据组员设备的设备标识分配广播序号,并且根据广播序号、预设的设备广播时长和设备标识,获取组群周期广播信息;随后广播组群广播信息,以使组员设备接收到后,能够根据组群广播信息中的广播序号,计算自身的广播时段后进行广播,避免组群中的各设备的广播冲突。According to the WiFi Aware group broadcast method of the embodiment of the present disclosure, the core device receives the first broadcast information sent by the group member device to obtain the device identifier of the group member device that joins the group; and allocates the device identifier according to the group member device. Broadcasting the serial number, and acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier; then broadcasting the group broadcast information to enable the group member device to receive the broadcast according to the group broadcast information The serial number is broadcast after calculating its own broadcast period to avoid broadcast conflicts of devices in the group.
在一个实施例中,根据广播序号、预设的设备广播时长和设备标识,获取组群周期广播信息的步骤(即,步骤200)可以包括:根据所述设备标识查找预设的第一对应关系,以确定所述设备标识对应的设备广播时长,其中,所述第一对应关系包括设备标识和设备广播时长的对应关系。In an embodiment, the step of acquiring the group period broadcast information (ie, step 200) according to the broadcast sequence number, the preset device broadcast duration, and the device identifier may include: searching for the preset first correspondence according to the device identifier. And determining, by the device identifier, a broadcast duration of the device, where the first correspondence includes a correspondence between the device identifier and the broadcast duration of the device.
在本公开的实施例中,可以根据设备标识获取设备标识对应的设备的属性,并且根据属性的不同分配不同的广播时长,可以灵活地对属性进行设置。In the embodiment of the present disclosure, the attributes of the device corresponding to the device identifier may be acquired according to the device identifier, and different broadcast durations are allocated according to different attributes, and the attribute may be flexibly set.
根据本公开实施例的WiFi Aware组群广播方法,核心设备在获 取组群周期广播信息的过程中,可以通过查找预设的设备时长对应关系,根据各组员设备的设备标识来分配不同的广播时长,在避免组群中的各设备的广播冲突的同时发,兼顾组群内各设备的广播时长的实际需求,使得组群周期广播消息更加符合需求。According to the WiFi Aware group broadcast method of the embodiment of the present disclosure, in the process of acquiring the group period broadcast information, the core device may allocate different broadcasts according to the device identifier of each group member device by searching for the preset device duration correspondence relationship. The duration is to avoid the broadcast conflict of each device in the group, and take into account the actual demand of the broadcast duration of each device in the group, so that the group period broadcast message is more in line with the demand.
在一个实施例中,根据广播序号、预设的设备广播时长和设备标识,获取组群周期广播信息的步骤(即,步骤200)还可以包括:根据所述广播序号、预设的设备广播时长、所述设备标识和广播间隔时长,获取组群周期广播信息。In an embodiment, the step of acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier (ie, step 200) may further include: according to the broadcast sequence number, a preset device broadcast duration And the device identifier and the broadcast interval duration, and the group period broadcast information is acquired.
组群内的各设备在广播时,随着时间的推迟,各设备之间的计时出现偏差,可能导致两个相邻的设备之间的广播出现冲突。因此,在每个广播时长之间可以设置广播间隔时长,例如,设置广播间隔时长为t2。因此,在一个包括N个设备(一个核心设备和N-1个组员设备)的组群中,组群广播周期的时长为N×(t1+t2),即在N×(t1+t2)的时长内,组群内的每个设备根据核心设备分配好的广播序号,在各自的广播时段内进行广播,并且在每个广播时段之间间隔t2的时长。When each device in the group broadcasts, the timing between the devices deviates with time, which may cause a conflict between broadcasts between two adjacent devices. Therefore, the broadcast interval duration can be set between each broadcast duration, for example, the broadcast interval duration is set to t2. Therefore, in a group consisting of N devices (one core device and N-1 group member devices), the duration of the group broadcast period is N × (t1 + t2), that is, at N × (t1 + t2) Within the duration of time, each device within the group broadcasts during the respective broadcast period according to the broadcast sequence number assigned by the core device, and the duration of t2 is separated between each broadcast period.
根据本公开实施例的WiFi Aware组群广播方法,在每个设备的广播时长之间设置了广播间隔时长,更好的避免了组群中的各设备的广播冲突。According to the WiFi Aware group broadcast method of the embodiment of the present disclosure, the broadcast interval duration is set between the broadcast durations of each device, and the broadcast conflict of each device in the group is better avoided.
在一个实施例中,所述WiFi Aware组群广播方法还包括广播组群同步信号,所述组群同步信号包括脉冲信号。In one embodiment, the WiFi Aware group broadcast method further includes a broadcast group synchronization signal, the group synchronization signal including a pulse signal.
由于组群内的各设备需要按照很小的时长进行广播,各设备之间的时间同步非常重要。如果一个组群内的各设备的时间同步不好,本应前后衔接进行广播的两个设备,会出现广播时段重合的现象。因此,用于同步各设备的广播组群同步信号可以使得组群内的各设备保持精准的同步。同步信号可以包括脉冲信号,可以周期性的广播同步信号,并且可以在广播组群广播信息的同时广播同步信号。Since each device in the group needs to be broadcast for a small period of time, time synchronization between devices is very important. If the time synchronization of each device in a group is not good, the two devices that should be connected before and after the broadcast will have a coincidence of the broadcast period. Therefore, the broadcast group synchronization signal used to synchronize the devices can maintain accurate synchronization of devices within the group. The synchronization signal may include a pulse signal, the synchronization signal may be periodically broadcasted, and the synchronization signal may be broadcast while broadcasting the group broadcast information.
根据本公开实施的WiFi Aware组群广播方法,核心设备广播同步信号,以使组群中的组员设备根据同步信号进行同步,避免组群中的各设备的由于时间失步导致的广播冲突。According to the WiFi Aware group broadcast method implemented by the present disclosure, the core device broadcasts a synchronization signal to synchronize the group member devices in the group according to the synchronization signal, thereby avoiding broadcast conflicts of each device in the group due to time out of synchronization.
在一个实施例中,当核心设备发现接收到的第一广播信息中的设备标识不在组群广播信息中时,可以根据当前能够接收到的第一广播信息中的所有设备标识,重新分配广播序号,并获取新的组群广播信息后进行广播,以使新加入的组员设备能够进行广播。本公开实施例提供了组员设备的加入机制,能够更具设备的增加及时更新组群广播信息。In an embodiment, when the core device finds that the device identifier in the received first broadcast information is not in the group broadcast information, the broadcast sequence number may be re-allocated according to all device identifiers in the first broadcast information that can be currently received. And broadcast the new group broadcast information to enable the newly joined group member device to broadcast. The embodiment of the present disclosure provides a joining mechanism of a group member device, which can update the group broadcast information in time with more equipment.
在一个实施例中,当核心设备识别出有组员设备退出当前的组群时,可以根据当前能够接收到的第一广播信息中的所有设备标识,重新分配广播序号,并获取新的组群广播信息后进行广播。本公开实施例提供了组员设备的退出机制,能够提高组群广播信息的利用率。In an embodiment, when the core device recognizes that the group member device exits the current group, the broadcast sequence number may be re-allocated according to all device identifiers in the first broadcast information that can be currently received, and a new group is obtained. Broadcast after broadcasting the information. The embodiment of the present disclosure provides an exit mechanism of the group member device, which can improve the utilization rate of the group broadcast information.
图2为根据本公开另一实施例的WiFi Aware组群广播方法的流程图。FIG. 2 is a flowchart of a WiFi Aware group broadcast method according to another embodiment of the present disclosure.
如图2所示,本公开另一实施例的WiFi Aware组群广播方法包括步骤S10至S30。As shown in FIG. 2, the WiFi Aware group broadcast method according to another embodiment of the present disclosure includes steps S10 to S30.
在步骤S10,接收并解析核心设备发送的组群广播信息,以获取所述组群广播信息中携带的设备广播时长、广播序号和与所述广播序号对应的设备标识。In step S10, the group broadcast information sent by the core device is received and parsed to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence carried in the group broadcast information.
WiFi Aware组群中的组员设备接收到核心设备发送的组群广播信息后,获取其中携带的设备广播时长、广播序号和与广播序号对应的设备标识。可以为每个设备分配的相同的广播时长,也可以根据设备属性为不同的设备分配的不同时长的广播时长。After receiving the group broadcast information sent by the core device, the member device in the WiFi Aware group obtains the broadcast duration of the device, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence number. The same broadcast duration that can be assigned to each device, or the broadcast duration of different durations allocated for different devices based on device attributes.
在步骤S20,根据所述设备广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算广播周期和所述广播周期内的广播时段。In step S20, the broadcast period and the broadcast period in the broadcast period are calculated according to the device broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the own device identifier.
组员设备根据自身设备标识和获取到的设备广播时长、广播序号、与广播序号对应的设备标识,获取广播周期并计算组群广播周期内的广播时段。The group member device acquires a broadcast period and calculates a broadcast period in the group broadcast period according to the device identifier and the acquired device broadcast duration, broadcast sequence number, and device identifier corresponding to the broadcast sequence number.
在步骤S30,根据所述广播周期和所述广播时段进行广播。In step S30, broadcasting is performed according to the broadcast period and the broadcast period.
组员设备根据计算出的广播周期,结合自身定时器,在每个广 播周期内的对应广播时段进行广播。The group member device broadcasts in accordance with the calculated broadcast period, in conjunction with its own timer, during the corresponding broadcast period in each broadcast period.
根据本公开实施例的WiFi Aware组群广播方法,组员设备通过接收核心设备发送的组群广播信息,以获取组群广播信息中携带的设备广播时长、广播序号和与广播序号对应的设备标识,随后计算广播周期和广播周期内的广播时段,并根据广播周期和广播时段进行广播。组群中的各组员设备通过获取各自的广播时段,避免了组群中各设备的广播冲突。According to the WiFi Aware group broadcast method of the embodiment of the present disclosure, the group member device receives the group broadcast information sent by the core device to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence number carried in the group broadcast information. Then, the broadcast period and the broadcast period in the broadcast period are calculated, and broadcast is performed according to the broadcast period and the broadcast period. Each group member device in the group avoids broadcast conflicts of devices in the group by acquiring respective broadcast periods.
在一个实施例中,根据所述设备广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算广播周期和所述广播周期内的广播时段的步骤(即,步骤S20)可以包括:获取所述组群周期广播信息中的广播周期;以及在所述广播周期内,根据所述广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算所述广播时段。In an embodiment, the step of calculating a broadcast period and a broadcast period in the broadcast period according to the device broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the own device identifier (ie, the step S20) may include: acquiring a broadcast period in the group period broadcast information; and, in the broadcast period, according to the broadcast duration, the broadcast sequence number, a device identifier corresponding to the broadcast sequence number, and a device identifier Calculate the broadcast period.
首先根据广播序号确定组群中需要进行广播的设备的个数,例如N个设备需要进行广播,然后根据广播序号和广播时长(例如t1)计算广播周期N×t1,随后根据计算出的广播周期和广播序号,确定广播时段。First, the number of devices in the group to be broadcasted is determined according to the broadcast sequence number, for example, N devices need to broadcast, and then the broadcast period N×t1 is calculated according to the broadcast sequence number and the broadcast duration (for example, t1), and then according to the calculated broadcast period. And the broadcast sequence number to determine the broadcast period.
根据本公开实施例的WiFi Aware组群广播方法,组员设备计算广播周期和广播周期内的广播时段,并根据广播周期和广播时段进行广播。组群中的各组员设备通过获取各自的广播时段,避免了组群中各设备的广播冲突。According to the WiFi Aware group broadcast method of the embodiment of the present disclosure, the group member device calculates a broadcast period and a broadcast period within the broadcast period, and broadcasts according to the broadcast period and the broadcast period. Each group member device in the group avoids broadcast conflicts of devices in the group by acquiring respective broadcast periods.
在一个实施例中,核心设备侧的方法包括如下步骤。In one embodiment, the method on the core device side includes the following steps.
核心设备负责群组组建,并且接收每个组员设备发送的包含特有标识的广播。核心设备根据其它组员设备加入的先后顺序为每个设备分配序号,并分配各个组员设备发送广播的时间段,每台设备在一个时间周期T内允许发送广播的时间窗口为t1秒,相邻窗口间隔t2秒,根据设备的个数N确定周期大小T=N*(t1+t2),从而满足同一时刻最多只允许群组内的一台设备发送广播。The core device is responsible for group formation and receives a broadcast containing a unique identifier sent by each member device. The core device assigns a sequence number to each device according to the order in which the other group members join, and allocates a time period in which each group member device transmits the broadcast, and each device allows the broadcast time window to be t1 seconds in one time period T, The neighboring window is separated by t2 seconds, and the period size T=N*(t1+t2) is determined according to the number N of devices, so that only one device in the group can be allowed to send broadcasts at the same time.
核心设备每隔m个周期发送一次同步信号,如果有设备退出或有新设备加入,则重新计算时间间隔,并且重新排列每个设备的序 号,随后发送广播告知其它设备,并发送新的同步信号。同步信号可以是一个简单的脉冲信号。The core device sends a synchronization signal every m cycles. If a device exits or a new device joins, the time interval is recalculated, and the sequence number of each device is rearranged, then the broadcast is sent to other devices, and a new synchronization signal is sent. . The sync signal can be a simple pulse signal.
其它组员设备将同步信号作为重置信号,重新计算自身设备发送广播的时间窗口。The other group member device uses the synchronization signal as a reset signal to recalculate the time window in which the device transmits the broadcast.
图3为根据本公开实施例的WiFi Aware组群广播方法中组员设备侧的流程图。FIG. 3 is a flowchart of a group member device side in a WiFi Aware group broadcast method according to an embodiment of the present disclosure.
如图3所示,组员设备侧的方法包括如下步骤1至4。As shown in FIG. 3, the method on the group device side includes the following steps 1 to 4.
在步骤1,接收发送启动信息。In step 1, the transmission start information is received.
当组员设备的使用者需要发送消息时,组员设备的发送按钮被按下,组员设备接收到发送启动消息。When the user of the group member device needs to send a message, the send button of the group member device is pressed, and the group member device receives the send start message.
在步骤2,当前时刻不处于所述广播时段时,计算距离下一个广播时段的时长,得到时差。In step 2, when the current time is not in the broadcast period, the time length from the next broadcast period is calculated to obtain a time difference.
组员设备判断当前时刻是否处于自身的广播时段,如果当前时刻处于自身广播时段,则发送广播信息。当前时刻不处于自身的广播时段时,组员设备计算距离当前时刻最近的下一个自身广播时段的时长,得到距离下一个广播时段的时差。The group member device determines whether the current time is in its own broadcast period, and if the current time is in its own broadcast period, the broadcast information is transmitted. When the current time is not in its own broadcast period, the group member device calculates the duration of the next self-broadcast period that is closest to the current time, and obtains the time difference from the next broadcast period.
在步骤3,启动定时器开始计时。In step 3, the timer is started to start timing.
在步骤4,当定时器计时的时长达到时差时,发送广播信息。In step 4, when the timer counts the time difference, the broadcast information is transmitted.
发送广播信息后,计时器停止计时。The timer stops counting after the broadcast message is sent.
根据本公开实施例,通过设置定时器计算广播时段,使得组员设备能够在属于自身的广播时段内发送广播信息。According to an embodiment of the present disclosure, the broadcast period is calculated by setting a timer so that the group member device can transmit the broadcast information within the broadcast period belonging to itself.
图4为根据本公开实施例的WiFi Aware组群中核心设备的结构示意图。FIG. 4 is a schematic structural diagram of a core device in a WiFi Aware group according to an embodiment of the present disclosure.
如图4所示,本公开实施例的WiFi Aware组群中核心设备包括接收及解析模块100、组群周期广播信息获取模块200和广播模块300。As shown in FIG. 4, the core device in the WiFi Aware group of the embodiment of the present disclosure includes a receiving and parsing module 100, a group period broadcast information acquiring module 200, and a broadcasting module 300.
接收及解析模块100设置为接收并解析组员设备发送的第一广播信息,其中,所述第一广播信息携带所述组员设备的设备标识。The receiving and parsing module 100 is configured to receive and parse the first broadcast information sent by the group member device, where the first broadcast information carries the device identifier of the group member device.
组群周期广播信息获取模块200设置为根据设备标识为组员设备分配广播序号,并根据所述广播序号、预设的设备广播时长和所 述设备标识,获取组群周期广播信息。根据本公开实施例,组群周期广播信息获取模块200还可以设置为根据所述广播序号、预设的设备广播时长、所述设备标识和广播间隔时长,获取组群周期广播信息。The group period broadcast information obtaining module 200 is configured to allocate a broadcast sequence number to the group member device according to the device identifier, and obtain the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier. According to an embodiment of the present disclosure, the group period broadcast information acquiring module 200 may further be configured to acquire group period broadcast information according to the broadcast sequence number, a preset device broadcast duration, the device identifier, and a broadcast interval duration.
广播模块300设置为广播所述组群广播信息。根据本公开实施例,广播模块300还可以设置为广播组群同步信号,所述组群同步信号包括脉冲信号。The broadcast module 300 is arranged to broadcast the group broadcast information. According to an embodiment of the present disclosure, the broadcast module 300 may also be configured to broadcast a group synchronization signal, the group synchronization signal including a pulse signal.
根据本公开实施例的WiFi Aware组群核心设备,通过接收并解析组员设备发送的第一广播信息,以获取加入组群的组员设备的设备标识;根据组员设备的设备标识分配广播序号,并且根据广播序号、预设的设备广播时长和设备标识,获取组群周期广播信息;随后广播组群广播信息,以使组员设备接收到后,能够根据组群广播信息中的广播序号,计算自身的广播时段后进行广播,避免组群中的各设备的广播冲突。The WiFi Aware group core device according to the embodiment of the present disclosure receives the first broadcast information sent by the group member device to obtain the device identifier of the group member device that joins the group; and assigns the broadcast sequence number according to the device identifier of the group member device. And acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier; and then broadcasting the group broadcast information so that after the group member device receives the broadcast sequence number in the group broadcast information, Broadcast after calculating its own broadcast period to avoid broadcast conflicts of devices in the group.
图5为根据本公开实施例的WiFi Aware组群中组员设备的结构示意图。FIG. 5 is a schematic structural diagram of a group member device in a WiFi Aware group according to an embodiment of the present disclosure.
如图5所示,本公开实施例的WiFi Aware组群中组员设备包括接收及解析模块10、广播周期及广播时段计算模块20和广播模块30。As shown in FIG. 5, the group member device in the WiFi Aware group of the embodiment of the present disclosure includes a receiving and parsing module 10, a broadcast period and a broadcast period calculation module 20, and a broadcast module 30.
接收及解析模块10设置为接收并解析核心设备发送的组群广播信息,以获取所述组群广播信息中携带的设备广播时长、广播序号和与所述广播序号对应的设备标识,还设置为接收发送启动信息。The receiving and parsing module 10 is configured to receive and parse the group broadcast information sent by the core device, to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence carried in the group broadcast information, and is further configured to Receive send start information.
广播周期及广播时段计算模块20设置为根据所述设备广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算广播周期和所述广播周期内的广播时段。广播周期及广播时段计算模块20包括:广播周期获取单元,其设置为获取所述组群周期广播信息中的广播周期;以及广播时段计算单元,其设置为在所述广播周期内,根据所述广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算所述广播时段。广播周期及广播时段计算模块20还包括:时差计算单元,其设置为当前时刻不处于所述广播时段时,计算距离下一个广播时段的时长,得到时 差;以及定时器启动单元,其设置为启动定时器开始计时。The broadcast period and broadcast period calculation module 20 is configured to calculate a broadcast period and a broadcast period in the broadcast period according to the device broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the own device identifier. The broadcast period and broadcast period calculation module 20 includes: a broadcast period acquisition unit configured to acquire a broadcast period in the group period broadcast information; and a broadcast period calculation unit configured to be within the broadcast period, according to the The broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the own device identifier are calculated, and the broadcast period is calculated. The broadcast period and broadcast period calculation module 20 further includes: a time difference calculation unit configured to calculate a duration from the next broadcast period when the current time is not in the broadcast period, to obtain a time difference; and a timer start unit that is set to start The timer starts timing.
广播模块30设置为根据所述广播周期和所述广播时段进行广播,还设置为当所述定时器计时的时长达到所述时差时,发送广播信息。The broadcast module 30 is configured to perform broadcast according to the broadcast period and the broadcast period, and is further configured to transmit broadcast information when the duration of the timer count reaches the time difference.
根据本公开实施例的WiFi Aware组群组员设备,通过接收核心设备发送的组群广播信息,以获取组群广播信息中携带的设备广播时长、广播序号和与广播序号对应的设备标识,随后计算广播周期和广播周期内的广播时段,并根据广播周期和广播时段进行广播。组群中的各组员设备通过获取各自的广播时段,避免了组群中各设备的广播冲突。The WiFi Aware group member device according to the embodiment of the present disclosure receives the group broadcast information sent by the core device to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence number carried in the group broadcast information, and then The broadcast period and the broadcast period within the broadcast period are calculated, and broadcasted according to the broadcast period and the broadcast period. Each group member device in the group avoids broadcast conflicts of devices in the group by acquiring respective broadcast periods.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together. Certain physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application specific integrated circuit. . Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
以上所述仅为本公开的实施例,并非用于限定本公开的保护范围。凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above description is only an embodiment of the present disclosure, and is not intended to limit the scope of the disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (15)

  1. 一种无线保真感知WiFi Aware组群广播方法,包括:A wireless fidelity-aware WiFi Aware group broadcast method includes:
    接收并解析组员设备发送的第一广播信息,其中,所述第一广播信息携带所述组员设备的设备标识;Receiving and parsing the first broadcast information sent by the group member device, where the first broadcast information carries the device identifier of the group member device;
    根据设备标识为组员设备分配广播序号,并根据所述广播序号、预设的设备广播时长和所述设备标识,获取组群周期广播信息;以及Assigning a broadcast sequence number to the group member device according to the device identifier, and acquiring the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier;
    广播所述组群广播信息。Broadcasting the group broadcast information.
  2. 如权利要求1所述的WiFi Aware组群广播方法,其中,获取组群周期广播信息的步骤包括:The WiFi Aware group broadcast method according to claim 1, wherein the step of acquiring group period broadcast information comprises:
    根据所述广播序号、预设的设备广播时长、所述设备标识和广播间隔时长,获取组群周期广播信息。The group period broadcast information is acquired according to the broadcast sequence number, the preset device broadcast duration, the device identifier, and the broadcast interval duration.
  3. 如权利要求1所述的WiFi Aware组群广播方法,还包括:The method of broadcasting a WiFi Aware group according to claim 1, further comprising:
    广播组群同步信号,其中,所述组群同步信号包括脉冲信号。Broadcast group synchronization signal, wherein the group synchronization signal includes a pulse signal.
  4. 一种无线保真感知WiFi Aware组群广播方法,包括:A wireless fidelity-aware WiFi Aware group broadcast method includes:
    接收并解析核心设备发送的组群广播信息,以获取所述组群广播信息中携带的设备广播时长、广播序号和与所述广播序号对应的设备标识;Receiving and parsing the group broadcast information sent by the core device, to obtain the device broadcast duration, the broadcast sequence number, and the device identifier corresponding to the broadcast sequence number carried in the group broadcast information;
    根据所述设备广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算广播周期和所述广播周期内的广播时段;以及Calculating a broadcast period and a broadcast period in the broadcast period according to the broadcast duration of the device, the broadcast sequence number, a device identifier corresponding to the broadcast sequence number, and an own device identifier;
    根据所述广播周期和所述广播时段进行广播。Broadcasting is performed according to the broadcast period and the broadcast period.
  5. 如权利要求4所述的WiFi Aware组群广播方法,其中,根据所述设备广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算广播周期和所述广播周期内的广播时段 的步骤包括:The WiFi Aware group broadcast method according to claim 4, wherein the broadcast period and the broadcast period are calculated according to the broadcast duration of the device, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the device identifier. The steps of the broadcast period within:
    获取所述组群周期广播信息中的广播周期;以及Obtaining a broadcast period in the group period broadcast information;
    在所述广播周期内,根据所述广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算所述广播时段。During the broadcast period, the broadcast period is calculated according to the broadcast duration, the broadcast sequence number, the device identifier corresponding to the broadcast sequence number, and the device identifier.
  6. 如权利要求4所述的WiFi Aware组群广播方法,还包括:The method of broadcasting a WiFi Aware group according to claim 4, further comprising:
    接收发送启动信息;Receiving and sending start information;
    当前时刻不处于所述广播时段时,计算距离下一个广播时段的时长,得到时差;When the current time is not in the broadcast period, the duration from the next broadcast period is calculated, and the time difference is obtained;
    启动定时器开始计时;以及Start the timer to start timing;
    当所述定时器计时的时长达到所述时差时,发送广播信息。The broadcast information is transmitted when the duration of the timer is timed to reach the time difference.
  7. 一种无线保真感知WiFi Aware核心设备,包括:A wireless fidelity-aware WiFi Aware core device, including:
    接收及解析模块,其设置为接收并解析组员设备发送的第一广播信息,其中,所述第一广播信息携带所述组员设备的设备标识;a receiving and parsing module, configured to receive and parse the first broadcast information sent by the group member device, where the first broadcast information carries the device identifier of the group member device;
    组群周期广播信息获取模块,其设置为根据设备标识为组员设备分配广播序号,并根据所述广播序号、预设的设备广播时长和所述设备标识,获取组群周期广播信息;a group period broadcast information obtaining module, configured to allocate a broadcast sequence number to the group member device according to the device identifier, and obtain the group period broadcast information according to the broadcast sequence number, the preset device broadcast duration, and the device identifier;
    广播模块,其设置为广播所述组群广播信息。A broadcast module configured to broadcast the group broadcast information.
  8. 如权利要求7所述的WiFi Aware核心设备,其中,所述组群周期广播信息获取模块还设置为:The WiFi Aware core device of claim 7, wherein the group period broadcast information acquisition module is further configured to:
    根据所述广播序号、预设的设备广播时长、所述设备标识和广播间隔时长,获取组群周期广播信息。The group period broadcast information is acquired according to the broadcast sequence number, the preset device broadcast duration, the device identifier, and the broadcast interval duration.
  9. 如权利要求7所述的WiFi Aware核心设备,其中,所述广播模块还设置为:The WiFi Aware core device of claim 7, wherein the broadcast module is further configured to:
    广播组群同步信号,其中,所述组群同步信号包括脉冲信号。Broadcast group synchronization signal, wherein the group synchronization signal includes a pulse signal.
  10. 一种无线保真感知WiFi Aware组员设备,包括:A wireless fidelity-aware WiFi Aware group member device, including:
    接收及解析模块,其设置为接收并解析核心设备发送的组群广播信息,以获取所述组群广播信息中携带的设备广播时长、广播序号和与所述广播序号对应的设备标识;a receiving and parsing module, configured to receive and parse the group broadcast information sent by the core device, to obtain a device broadcast duration, a broadcast sequence number, and a device identifier corresponding to the broadcast sequence carried in the group broadcast information;
    广播周期及广播时段计算模块,其设置为根据所述设备广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算广播周期和所述广播周期内的广播时段;以及a broadcast period and a broadcast period calculation module, configured to calculate a broadcast period and a broadcast period in the broadcast period according to the broadcast duration of the device, the broadcast sequence number, a device identifier corresponding to the broadcast sequence number, and a device identifier; as well as
    广播模块,其设置为根据所述广播周期和所述广播时段进行广播。A broadcast module configured to broadcast according to the broadcast period and the broadcast period.
  11. 如权利要求10所述的WiFi Aware组员设备,其中,所述广播周期及广播时段计算模块包括:The WiFi Aware group member device of claim 10, wherein the broadcast period and broadcast period calculation module comprises:
    广播周期获取单元,其设置为获取所述组群周期广播信息中的广播周期;以及a broadcast period acquisition unit configured to acquire a broadcast period in the group period broadcast information;
    广播时段计算单元,其设置为在所述广播周期内,根据所述广播时长、所述广播序号、与所述广播序号对应的设备标识和自身设备标识,计算所述广播时段。a broadcast period calculation unit configured to calculate the broadcast period according to the broadcast duration, the broadcast sequence number, a device identifier corresponding to the broadcast sequence number, and a device identifier in the broadcast period.
  12. 如权利要求10所述的WiFi Aware组员设备,其中,The WiFi Aware group member device according to claim 10, wherein
    所述接收及解析模块还设置为接收发送启动信息,The receiving and parsing module is further configured to receive and send start information.
    所述广播周期及广播时段计算模块还包括:The broadcast period and broadcast period calculation module further includes:
    时差计算单元,其设置为当前时刻不处于所述广播时段时,计算距离下一个广播时段的时长,得到时差;以及a time difference calculation unit configured to calculate a duration from a next broadcast period when the current time is not in the broadcast period, to obtain a time difference;
    定时器启动单元,其设置为启动定时器开始计时,并且a timer start unit, which is set to start the timer to start timing, and
    所述广播模块还设置为当所述定时器计时的时长达到所述时差时,发送广播信息。The broadcast module is further configured to send broadcast information when the duration of the timer is timed to reach the time difference.
  13. 一种无线保真感知WiFi Aware核心装置,包括存储器和处理器,在所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时,所述处理器执行如权利要求1至3中任一项所述的WiFi Aware组群广播方法。A wireless fidelity-aware WiFi Aware core device comprising a memory and a processor on which is stored a computer program, the processor executing the claims 1 to 3 when the computer program is executed by the processor The WiFi Aware group broadcast method according to any one of the preceding claims.
  14. 一种无线保真感知WiFi Aware组员装置,包括存储器和处理器,在所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时,所述处理器执行如权利要求4至6中任一项所述的WiFi Aware组群广播方法。A wireless fidelity-aware WiFi Aware group member device comprising a memory and a processor, on which is stored a computer program, the computer program being executed by the processor, the processor executing as claimed in claim 4 The WiFi Aware group broadcast method according to any one of the preceding claims.
  15. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,所述处理器执行如权利要求1至6中任一项所述的无线保真感知WiFi Aware组群广播方法。A computer readable storage medium having stored thereon a computer program, the processor executing the wireless fidelity-aware WiFi Aware group according to any one of claims 1 to 6 Group broadcast method.
PCT/CN2019/070452 2018-01-10 2019-01-04 Wireless fidelity aware group broadcasting method, core device, and member device WO2019137310A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810021409.XA CN110022532A (en) 2018-01-10 2018-01-10 A kind of WiFi-Aware group broadcasting method, core equipment and group member's equipment
CN201810021409.X 2018-01-10

Publications (1)

Publication Number Publication Date
WO2019137310A1 true WO2019137310A1 (en) 2019-07-18

Family

ID=67187925

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/070452 WO2019137310A1 (en) 2018-01-10 2019-01-04 Wireless fidelity aware group broadcasting method, core device, and member device

Country Status (2)

Country Link
CN (1) CN110022532A (en)
WO (1) WO2019137310A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3038326A1 (en) * 2014-12-22 2016-06-29 Orange Method, devices, system and corresponding computer program for service discovery
CN106611393A (en) * 2016-12-30 2017-05-03 Tcl集团股份有限公司 Dining method and system based on WiFi aware and dining terminal
CN106789583A (en) * 2016-12-26 2017-05-31 惠州Tcl移动通信有限公司 A kind of intelligent social method and system based on WiFi Aware
CN106781621A (en) * 2017-03-06 2017-05-31 北京小米移动软件有限公司 Arrival reminding method and device
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333888A (en) * 2014-10-27 2015-02-04 中央民族大学 Self-organized instant messaging method based on Wi-Fi direct connection
CN105791368B (en) * 2014-12-25 2019-01-01 中国移动通信集团公司 A kind of dispatching method and device of car-mounted terminal communication
US9872234B2 (en) * 2015-02-12 2018-01-16 Intel IP Corporation Apparatus, system and method of communicating in an awareness cluster

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3038326A1 (en) * 2014-12-22 2016-06-29 Orange Method, devices, system and corresponding computer program for service discovery
CN106789583A (en) * 2016-12-26 2017-05-31 惠州Tcl移动通信有限公司 A kind of intelligent social method and system based on WiFi Aware
CN106611393A (en) * 2016-12-30 2017-05-03 Tcl集团股份有限公司 Dining method and system based on WiFi aware and dining terminal
CN106781621A (en) * 2017-03-06 2017-05-31 北京小米移动软件有限公司 Arrival reminding method and device
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal

Also Published As

Publication number Publication date
CN110022532A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US11678365B2 (en) Apparatus and method for allocating resource and transmitting/receiving resource allocation information in communication system supporting device to device scheme
EP3014940B1 (en) Method and apparatuses for performing device-to-device communication
CN108024367B (en) Method, device, equipment and storage medium for dynamically allocating time slot
WO2017181870A1 (en) Method of competing for resources, and communication equipment
EP4290936A1 (en) Random access method and device, and storage medium
JP6438132B2 (en) Data transmission method, resource measurement method, apparatus, and device
US9936497B2 (en) Node scheduling method and system and device
CN102625460A (en) Network access method
US20160338012A1 (en) Resource Configuration Method and Apparatus
US9848398B2 (en) Scheduling method between terminals for search resource allocation in direct device to device communication and device thereof
JP2017063312A5 (en)
US20150009858A1 (en) Discovery method and apparatus in device-to-device direct communication
US10284605B2 (en) Method and terminal for providing MCPTT service
WO2019137310A1 (en) Wireless fidelity aware group broadcasting method, core device, and member device
EP3384696B1 (en) Communication apparatus, method of controlling the same, and program
KR20150113103A (en) User equipment d2d communication resources allocation method and equipment
CN111465112B (en) Method and device for processing access control signaling
EP3407632B1 (en) Communication device, method controlling same, and program
JP6603389B2 (en) Resource measuring method, data transmitting apparatus, and program
JP6281859B2 (en) Wireless communication method
CN112533304A (en) Ad hoc network management method, device, system, electronic device and storage medium
CN109246067B (en) Connection method, device and system
TWI779160B (en) Method for selecting a synchronous carrier and devices and computer storage medium
WO2015157945A1 (en) Information transmission method, device, and system
CN116916472A (en) Communication method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19738605

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 11/11/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 19738605

Country of ref document: EP

Kind code of ref document: A1