WO2014186985A1 - Communication device and wireless communication method - Google Patents

Communication device and wireless communication method Download PDF

Info

Publication number
WO2014186985A1
WO2014186985A1 PCT/CN2013/076228 CN2013076228W WO2014186985A1 WO 2014186985 A1 WO2014186985 A1 WO 2014186985A1 CN 2013076228 W CN2013076228 W CN 2013076228W WO 2014186985 A1 WO2014186985 A1 WO 2014186985A1
Authority
WO
WIPO (PCT)
Prior art keywords
message frame
frame
broadcast message
discovery broadcast
service
Prior art date
Application number
PCT/CN2013/076228
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 东莞宇龙通信科技有限公司
Priority to PCT/CN2013/076228 priority Critical patent/WO2014186985A1/en
Priority to CN201380062726.1A priority patent/CN104854954A/en
Publication of WO2014186985A1 publication Critical patent/WO2014186985A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to a communication device and a wireless communication method. Background technique
  • the content of the research is social network, mainly how many STAs (terminals) discover other things together. STAs of the service and perform file sharing or other services.
  • the service message is a broadcast message in the existing 802.11 mechanism
  • the STA terminal
  • the STA will reply the response message to the sender of the broadcast message immediately after receiving the message.
  • the STA terminal
  • the situation is that a large number of response messages are returned to the sender of the broadcast message in a short time, which may cause A large number of conflicts, especially for hidden nodes, conflicts are inevitable.
  • a specific schematic diagram is shown in Figure 1.
  • the broadcast service discovery message frame is sent by STA B.
  • STA A and STA B cannot interfere with each other because they cannot hear each other's response message frame of the broadcast message frame.
  • the present invention is based on the above problem, and proposes a new technical solution, so that devices that receive the discovery broadcast message frame each determine a corresponding time point to return a response message frame, and reduce the device in the prior art to immediately send a response message frame.
  • the possibility of conflicts is conducive to the improvement of the connection efficiency between devices.
  • the present invention provides a communication device, including: a data interaction module, receiving a discovery broadcast message frame, and transmitting a response message frame of the discovery broadcast message frame, where the discovery broadcast message frame is at a first time a point is received, and the discovery broadcast message frame includes at least a broadcast period of the discovery broadcast message frame and/or a second time point at which the discovery broadcast message frame is retransmitted; a data processing module, recording the first a time point, where the second time point is acquired or the broadcast period is included in the discovery broadcast message frame, the second time point is calculated according to the broadcast period, and at the first time A third time point is determined between the point and the second time point for the data interaction module to send the response message frame.
  • the communication device may be a mobile phone or a tablet, or may be a device such as a router
  • the data processing module may be a chip module for data processing in the communication device
  • the data interaction module is equivalent to a signal transceiver device and an antenna.
  • the above communication device is supported
  • the NAN-enabled device In the NAN network, when the communication device receives the discovery broadcast message frame, the default processing method is to immediately return the response message frame, but for the sender of the broadcast message frame, when the number of devices returning the response message frame is too large, It may cause conflicts on the sender, which affects the connection efficiency between devices. Therefore, by receiving, by the device, the first time point of the discovery broadcast message frame is received (assumed to be T1); at the same time, the second time point (assumed to be T2) that the sender transmits again can be parsed from the discovery broadcast message frame, of course, In one case, T2 may be parsed directly from the discovery broadcast message frame.
  • the third time point is the data processing module The time point selected by the machine.
  • T3 is randomly selected, and may be selected by selecting an arbitrary time point between T1 and T2 or a period of time between T1 and T2, which may be a time unit ( Time Unit, TU ) is multiplied by a certain integer m.
  • T3 can also be selected by randomly selecting an integer n between 0 and m, and then multiplying by TU, because all T3s that need to return a response message frame are needed.
  • the probability that the time points are the same is very low, which can effectively reduce or avoid the probability of sending message conflicts, and also improve the connection efficiency between devices.
  • the discovery broadcast message frame received by the data interaction module is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame.
  • the service discovery broadcast message frame includes a service message type for informing the device receiving the message frame of the type of service supported by the sender.
  • Device Discovery Broadcast Message The frame contains the device type, which is used to inform the sender of the device type of the device that received the message frame.
  • the service and device discovery broadcast message frame contains the service message type and/or device type, so that the sender's related message is notified to the device that received the message frame.
  • the data processing module further acquires a time synchronization function parameter from the discovery broadcast message frame before determining the third time point, and uses the time synchronization function parameter and the The sender of the broadcast message frame is found to be time synchronized.
  • the TSF Time Synchronization Function
  • the data processing module further obtains a device type identifier bit or a message frame type identifier bit from the discovery broadcast message frame, where the value of the device type identifier bit or the message frame type identifier bit is represented. Whether the sender of the discovery broadcast message frame is a neighbor aware network device or whether the discovery broadcast message frame is a neighbor aware network message frame.
  • Broadcast message frames are not used for discovery connections between NAN devices. Therefore, the sender of a message frame needs to indicate its identity, that is, whether it is a NAN device. If it is, the receiver will perform operations such as parsing the message frame. Otherwise, it does not need to be executed.
  • the data processing module determines the value of the device type identifier bit or the message frame type identifier bit from a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame.
  • one or more reserved bits in a frame control domain of a frame header of a MAC (Medium Access Control) frame of a message frame may be used to place a device type identifier bit or a message frame type identifier. Bit, to indicate the support of the sender of the message frame for the service message.
  • MAC Medium Access Control
  • the data processing module determines the device type identifier bit from a type subfield and a subtype subdomain of a frame control field of a frame header of a medium access control frame of the discovery broadcast message frame or The value of the message frame type identification bit.
  • the device type identifier bit or the message frame type identifier bit may be placed by using the "11" in the type sub-domain and the reserved bit corresponding to "0000" in the sub-type sub-domain. Indicates the support of the sender of the message frame to the service message.
  • the value of the preset position matches the preset value, it is determined that the sender of the message frame is a NAN device; otherwise, it is considered not to be a NAN device, and if the destination address of the message frame is not the receiver of the message frame, the device is discarded.
  • the message frame is discarded.
  • the data processing module further obtains a service from the discovery broadcast message frame.
  • a type identifier bit where the value of the service type identifier bit indicates specific information of a service message type and/or a service message corresponding to the discovery broadcast message frame.
  • the support of the sender of the message frame for the service message can be directly determined to determine whether to connect to the sender device.
  • the data processing module determines a value of the service type identifier bit from a header portion of the medium access control frame of the discovery broadcast message frame.
  • one or more reservations of the frame header portion of the MAC frame may be utilized.
  • Bit to place the service type identifier bit.
  • the frame header portion of the MAC frame includes A (Address) 1, A2, and A3 fields, where the Al field is used to describe the destination address, and the A2 field is used to describe the source address, considering the actual characteristics of the NAN network, Since each NAN device is independently connected to other NAN devices without the assistance of another device, the A3 address is not available in the NAN network, and then it can be used as the service type identifier of the NAN device.
  • the data processing module determines a value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
  • the service type identifier bit may also be placed by using one or more reserved bits of the frame body portion of the MAC frame.
  • the reserved bit may be located in the order domain of the frame body part of the MAC frame.
  • the service type identifier bit may also appear in the form of an information element (IE), and is placed in an order domain of the frame body, for example Placed in the order domain 26, of course, can also be placed in other order domains.
  • IE information element
  • the present invention also provides a wireless communication method, including: receiving a discovery broadcast message frame, and recording a first time point of reception; the discovery broadcast message frame includes at least a broadcast period of the discovery broadcast message frame and/or The second time point of the discovery that the broadcast message frame is resent, wherein when the discovery broadcast message frame only includes the broadcast period, the second time point is calculated according to the broadcast period; A third time point is determined between the first time point and the second time, for transmitting the response message frame of the discovery broadcast message frame.
  • the communication device may be a mobile phone or a tablet, or may be a device such as a router
  • the data processing module may be a chip module for data processing in the communication device
  • the data interaction module is equivalent to a signal transceiver device and an antenna.
  • the communication device is a device supporting the NAN function.
  • the default processing method is to immediately return the response message frame, but for the sender of the broadcast message frame, when the number of devices returning the response message frame is too large, It may cause conflicts on the sender, which affects the connection efficiency between devices.
  • the method further includes: the third time point is a randomly selected time point.
  • ⁇ 3 is randomly selected, and it may be selected by selecting an arbitrary time point between T1 and ⁇ 2 or a period of time between T1 and ⁇ 2, which may be a time unit (Time) Unit, TU) is multiplied by a certain integer m.
  • the choice of T3 can also be randomly selected from 0 to m to select an integer n, and then multiplied by TU, because all the T3 time needed to return the response message frame.
  • the probability that the points are all the same is very low, which can effectively reduce or avoid the probability of sending message conflicts, and also improve the connection efficiency between devices.
  • the method further includes: the discovery broadcast message frame is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame.
  • the service discovery broadcast message frame includes a service message type for informing the device receiving the message frame of the type of service supported by the sender.
  • Device Discovery Broadcast Message The frame contains the device type, which is used to inform the sender of the device type of the device that received the message frame.
  • the service and device discovery broadcast message frame contains the service message type and/or device type, so that the sender's related message is notified to the device that received the message frame.
  • the method before determining the third time point, further includes: acquiring a time synchronization function parameter from the discovery broadcast message frame, and using the time synchronization function parameter and the discovery broadcast message The sender of the frame performs time synchronization.
  • the TSF Time Synchronization Function
  • the method further includes: acquiring a device type identifier bit or a message frame type identifier bit from the discovery broadcast message frame, where the value of the device type identifier bit or the message frame type identifier bit indicates the discovery Whether the sender of the broadcast message frame is a neighbor aware network device or whether the discovery broadcast message frame is a neighbor aware network message frame.
  • the sender of the message frame needs to indicate its identity, that is, whether it is The NAN device, if it is, the receiver will perform operations such as parsing the message frame, otherwise it will not need to be executed.
  • the method further includes: determining a value of the device type identifier bit or the message frame type identifier bit from a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame.
  • one or more reserved bits in a frame control domain of a frame header of a MAC (Medium Access Control) frame of a message frame may be used to place a device type identifier bit or a message frame type identifier. Bit, to indicate the support of the sender of the message frame for the service message.
  • MAC Medium Access Control
  • the method further includes: determining, according to a type subfield and a subtype subfield of a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame, the device type identifier bit or a message frame. The value of the type identifier bit.
  • the device type identifier bit or the message frame type identifier bit may be placed by using the "11" in the type sub-domain and the reserved bit corresponding to "0000" in the sub-type sub-domain. Indicates the support of the sender of the message frame to the service message.
  • the value of the preset position matches the preset value, it is determined that the sender of the message frame is a NAN device; otherwise, it is considered not to be a NAN device, and if the destination address of the message frame is not the receiver of the message frame, the device is discarded.
  • the message frame is discarded.
  • the method further includes: acquiring a service type identifier bit from the discovery broadcast message frame, where The value of the service type identifier bit indicates the specific information of the service message type and/or the service message corresponding to the discovery broadcast message frame.
  • the support of the sender of the message frame for the service message may be directly determined to determine whether to connect to the sender device.
  • the method further includes: determining a value of the service type identifier bit from a header portion of the medium access control frame of the discovery broadcast message frame.
  • the service type identification bit can be placed by using one or more reserved bits of the header portion of the MAC frame.
  • the frame header portion of the MAC frame includes A (Address) 1, A2, and A3 fields, where the Al field is used to describe the destination address, and the A2 field is used to describe the source address, considering the actual characteristics of the NAN network, Since each NAN device is independently connected to other NAN devices without the assistance of another device, the A3 address is not available in the NAN network, and then it can be used as the service type identifier of the NAN device.
  • the method further includes: determining a value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
  • the service type identifier bit may also be placed by using one or more reserved bits of the frame body portion of the MAC frame.
  • the reserved bit may be located in the order domain of the frame body part of the MAC frame.
  • the service type identifier bit may also appear in the form of an information element (IE), and is placed in an order domain of the frame body, for example Placed in the order domain 26, of course, can also be placed in other order domains.
  • IE information element
  • the devices that receive the discovery broadcast message frame can respectively determine the corresponding time point to return the response message frame, which reduces the possibility that the devices in the prior art immediately send the response message frame to generate a conflict, which is beneficial to the device room. Establish an increase in connection efficiency.
  • FIG. 1 is a schematic diagram showing interference between a plurality of devices in the prior art
  • FIG. 2 shows a block diagram of a communication device in accordance with an embodiment of the present invention
  • FIG. 3 shows a flow chart of a method of wireless communication in accordance with an embodiment of the present invention
  • FIG. 4 illustrates a specific processing flow for discovering a broadcast message frame according to an embodiment of the present invention. detailed description
  • FIG. 2 shows a block diagram of a communication device in accordance with an embodiment of the present invention.
  • the communication device 200 includes: a data interaction module 202, receiving a discovery broadcast message frame, and transmitting a response message frame of the discovery broadcast message frame, where the discovery broadcast message The frame is received at a first time point, and the discovery broadcast message frame includes at least a broadcast period of the discovery broadcast message frame and/or a second time point at which the discovery broadcast message frame is retransmitted; the data processing module 204 Recording the first time point, obtaining the second time point, or calculating only the broadcast period in the discovery broadcast message frame, calculating the second time point according to the broadcast period, and A third time point is determined between the first time point and the second time point for the data interaction module 202 to send the response message frame.
  • the communication device 200 may be a mobile phone or a tablet, or may be a device such as a router, the data processing module 204 may be a chip module for data processing in the communication device 200, and the data interaction module 202 is equivalent to a signal transceiver device. And antennas, etc.
  • the communication device 200 is a device supporting the NAN function.
  • the default processing method is to immediately return the response message frame, but this is true for the sender of the broadcast message frame when the number of devices returning the response message frame is too large. , may cause conflicts on the sender, which affects the connection efficiency between devices.
  • the third time point is a time point randomly selected by the data processing module 204.
  • ⁇ 3 is randomly selected, and it may be selected by selecting an arbitrary time point between T1 and ⁇ 2 or a period of time between T1 and ⁇ 2, which may be a time unit (Time) Unit, TU) is multiplied by a certain integer m.
  • the choice of T3 can also be randomly selected from 0 to m to select an integer n, and then multiplied by TU, because all the T3 time needed to return the response message frame.
  • the probability that the points are all the same is very low, which can effectively reduce or avoid the probability of sending message conflicts, and also improve the connection efficiency between devices.
  • the discovery broadcast message frame received by the data interaction module 202 is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame.
  • the service discovery broadcast message frame includes a service message type for informing the device receiving the message frame of the type of service supported by the sender.
  • Device Discovery Broadcast Message The frame contains the device type, which is used to inform the sender of the device type of the device that received the message frame.
  • the service and device discovery broadcast message frame contains the service message type and/or device type, so that the sender's related message is notified to the device that received the message frame.
  • the data processing module 204 further acquires a time synchronization function parameter from the discovery broadcast message frame, and uses the time synchronization function parameter and the location before determining the third time point. It is found that the sender of the broadcast message frame performs time synchronization.
  • the TSF Time Synchronization Function
  • the data processing module 204 is further widely Obtaining a device type identifier bit or a message frame type identifier bit in the broadcast message frame, where the value of the device type identifier bit or the message frame type identifier bit indicates whether the sender of the discovery broadcast message frame is a neighbor aware network device or the discovery Whether the broadcast message frame is a neighbor-aware network message frame.
  • the sender of the message frame needs to indicate its identity, that is, whether it is The NAN device, if it is, the receiver will perform operations such as parsing the message frame, otherwise it will not need to be executed.
  • the data processing module 204 determines the value of the device type identifier bit or the message frame type identifier bit from a frame control domain of a frame header of a medium access control frame of the discovery broadcast message frame. .
  • one or more reserved bits in a frame control domain of a frame header of a MAC (Medium Access Control) frame of a message frame may be used to place a device type identifier bit or a message frame type identifier. Bit, to indicate the support of the sender of the message frame for the service message.
  • MAC Medium Access Control
  • the data processing module 204 determines the device type identifier bit from a type sub-domain and a sub-type sub-domain of a frame control field of a frame header of a medium access control frame of the discovery broadcast message frame. Or the value of the message frame type identifier bit.
  • the device type identifier bit or the message frame type identifier bit may be placed by using the "11" in the type sub-domain and the reserved bit corresponding to "0000" in the sub-type sub-domain. Indicates the support of the sender of the message frame to the service message.
  • the value of the preset position matches the preset value, it is determined that the sender of the message frame is a NAN device; otherwise, it is considered not to be a NAN device, and if the destination address of the message frame is not the receiver of the message frame, the device is discarded.
  • the message frame is discarded.
  • the data processing module 204 further obtains from the discovery broadcast message frame.
  • a service type identifier bit where the value of the service type identifier bit indicates specific information of a service message type and/or a service message corresponding to the discovery broadcast message frame.
  • the frame of the message can directly determine the support of the sender of the message frame for the service message to determine whether to connect to the sender device.
  • the data processing module 204 determines a value of the service type identifier bit from a header portion of the medium access control frame of the discovery broadcast message frame.
  • the service type identification bit can be placed by using one or more reserved bits of the header portion of the MAC frame.
  • the frame header portion of the MAC frame includes A (Address) 1, A2, and A3 fields, where the Al field is used to describe the destination address, and the A2 field is used to describe the source address, considering the actual characteristics of the NAN network, Since each NAN device is independently connected to other NAN devices without the assistance of another device, the A3 address is not available in the NAN network, and then it can be used as the service type identifier of the NAN device.
  • the data processing module 204 determines the value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
  • the service type identifier bit may also be placed by using one or more reserved bits of the frame body portion of the MAC frame.
  • the reserved bit may be located in the order domain of the frame body part of the MAC frame.
  • the service type identifier bit may also appear in the form of an information element (IE), and is placed in an order domain of the frame body, for example Placed in the order domain 26, of course, can also be placed in other order domains.
  • IE information element
  • FIG. 3 shows a flow chart of a method of wireless communication in accordance with an embodiment of the present invention.
  • the wireless communication method includes: Step 302: Receive a discovery broadcast message frame, and record a first time point when receiving; Step 304: The discovery broadcast message frame includes at least a second time point of the broadcast period of the discovery broadcast message frame and/or the discovery broadcast message frame being retransmitted, wherein, when the discovery broadcast message frame only includes the broadcast period, according to the broadcast period Calculating the second time point; Step 306, determining a third time point between the first time point and the second time point, for transmitting the response message frame of the discovery broadcast message frame.
  • the communication device may be a mobile phone or a tablet, or may be a device such as a router, and the data processing module may be a chip module for data processing in the communication device, and the data interaction
  • the module is equivalent to a signal transmitting device and an antenna.
  • the above communication device is supported
  • the NAN-enabled device In the NAN network, when the communication device receives the discovery broadcast message frame, the default processing method is to immediately return the response message frame, but for the sender of the broadcast message frame, when the number of devices returning the response message frame is too large, It may cause conflicts on the sender, which affects the connection efficiency between devices. Therefore, by receiving, by the device, the first time point of the discovery broadcast message frame is received (assumed to be T1); at the same time, the second time point (assumed to be T2) that the sender transmits again can be parsed from the discovery broadcast message frame, of course, In one case, T2 may be parsed directly from the discovery broadcast message frame.
  • the method further includes: the third time point is a randomly selected time point.
  • ⁇ 3 is randomly selected, and it may be selected by selecting an arbitrary time point between T1 and ⁇ 2 or a period of time between T1 and ⁇ 2, which may be a time unit (Time) Unit, TU) is multiplied by a certain integer m.
  • the choice of T3 can also be randomly selected from 0 to m to select an integer n, and then multiplied by TU, because all the T3 time needed to return the response message frame.
  • the probability that the points are all the same is very low, which can effectively reduce or avoid the probability of sending message conflicts, and also improve the connection efficiency between devices.
  • the method further includes: the discovery broadcast message frame is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame.
  • the service discovery broadcast message frame includes a service message type, and is used to notify the device that receives the message frame of the service type supported by the sender.
  • the device discovery broadcast message frame includes a device type for informing the device type of the sender that the device type of the sender is received.
  • the service and device discovery broadcast message frame contains the service message type and/or device type, so that the sender's related message informs the device that received the message frame.
  • the method further includes: acquiring a time synchronization function parameter from the discovery broadcast message frame, and using the time synchronization function parameter and the discovery broadcast message The sender of the frame performs time synchronization.
  • the TSF Time Synchronization Function
  • the method further includes: acquiring a device type identifier bit or a message frame type identifier bit from the discovery broadcast message frame, where the value of the device type identifier bit or the message frame type identifier bit indicates the discovery Whether the sender of the broadcast message frame is a neighbor aware network device or whether the discovery broadcast message frame is a neighbor aware network message frame.
  • the sender of the message frame needs to indicate its identity, that is, whether it is The NAN device, if it is, the receiver will perform operations such as parsing the message frame, otherwise it will not need to be executed.
  • the method further includes: determining a value of the device type identifier bit or the message frame type identifier bit from a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame.
  • one or more reserved bits in a frame control domain of a frame header of a MAC (Medium Access Control) frame of a message frame may be used to place a device type identifier bit or a message frame type identifier. Bit, to indicate the support of the sender of the message frame for the service message.
  • MAC Medium Access Control
  • the method further includes: determining, according to a type subfield and a subtype subfield of a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame, the device type identifier bit or a message frame. The value of the type identifier bit.
  • the device type identifier bit or the message frame type identifier bit may be placed by using the "11" in the type sub-domain and the reserved bit corresponding to "0000" in the sub-type sub-domain. Indicates the support of the sender of the message frame to the service message.
  • the preset position When the value matches the preset value, it is determined that the sender of the message frame is a NAN device; otherwise, it is considered not to be a NAN device, and if the destination address of the message frame is not the receiver of the message frame, the message frame is discarded.
  • the method further includes: acquiring a service type identifier bit from the discovery broadcast message frame, where The value of the service type identifier bit indicates the specific information of the service message type and/or the service message corresponding to the discovery broadcast message frame.
  • the support of the sender of the message frame for the service message can be directly determined to determine whether to connect to the sender device.
  • the method further includes: determining a value of the service type identifier bit from a header portion of the medium access control frame of the discovery broadcast message frame.
  • the service type identification bit can be placed by using one or more reserved bits of the header portion of the MAC frame.
  • the frame header portion of the MAC frame includes A (Address) 1, A2, and A3 fields, where the Al field is used to describe the destination address, and the A2 field is used to describe the source address, considering the actual characteristics of the NAN network, Since each NAN device is independently connected to other NAN devices without the assistance of another device, the A3 address is not available in the NAN network, and then it can be used as the service type identifier of the NAN device.
  • the method further includes: determining a value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
  • the service type identifier bit may also be placed by using one or more reserved bits of the frame body portion of the MAC frame.
  • the reserved bit may be located in the order domain of the frame body part of the MAC frame.
  • the service type identifier bit may also appear in the form of an information element (IE), and is placed in an order domain of the frame body, for example Placed in the order domain 26, of course, can also be placed in other order domains.
  • IE information element
  • FIG. 4 shows a detailed process flow diagram for discovering broadcast message frames in accordance with an embodiment of the present invention.
  • a specific processing flow for discovering a broadcast message frame includes:
  • Step 402 assuming that the device A is the sender of the discovery broadcast message frame, and the device B is the device that receives the discovery broadcast message frame, that is, the process of the device B is taken as an example here, and the other received the broadcast message frame of the discovery is received.
  • the device can also be processed in the same steps and manner.
  • device A, device B, and other devices are NAN devices.
  • Step 404 Device B determines whether the broadcast message frame is a NAN message frame. Specifically, for example, it may be judged by a joint value of a type subfield and a subtype subfield of a header portion of a MAC frame in which a broadcast message frame is found. If the determination is yes, then go to step 406, otherwise go to step 412.
  • Step 406 The device B determines whether the broadcast message frame is found to be of a type required by itself.
  • the broadcast message frame may be specifically a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame, where the service discovery broadcast message frame includes a service message type, and is used to Device B is notified of the type of service supported by device A.
  • the device discovery broadcast message frame contains the device type, which is used to inform device B of the device type of device A.
  • the service and device discovery broadcast message frame contains the service message type and/or device type, so that device A related message is notified to device B.
  • step 406 needs to be performed; and when the discovery broadcast message frame received by the device B is a device discovery broadcast message frame. At that time, step 406 need not be performed, and step 404 is directly entered into step 408.
  • device B when device B determines the type of the received discovery broadcast message frame, it may parse out a certain sub-domain (such as A3, A4 domain) or a sub-domain of the frame body part of the frame header portion of the message frame.
  • the service message type identifier contained in (such as a certain order domain) determines the type of service message supported by device A and/or the content of the service message. If the type is correct, the process proceeds to step 408; otherwise, the process proceeds to step 412.
  • Step 408 determining that the device B receives the time point T1 of discovering the broadcast message frame, parsing out the time point T2 at which the message frame is retransmitted from the received discovery broadcast message frame, or parsing the sending period of the message frame, and Calculating T2 according to the transmission period; determining a time point T3 between T1 and T2, specifically, by randomly selecting between T1 and T2, Thereby reducing the probability that multiple devices are selected to the same T3 time point, effectively avoiding message conflicts on device A.
  • TSF information may be set in the discovery broadcast message frame, and device B may synchronize with device A according to the TSF information before determining T3. To ensure the accuracy and enforceability of the point in time.
  • Step 410 Device B sends a response message frame of the received discovery broadcast message frame at T3.
  • Step 412 Device B discards the received discovery broadcast message frame.
  • the present application provides a communication device and a wireless communication method, so that devices that receive a broadcast broadcast message frame respectively determine a corresponding time point to return a response message frame, and reduce
  • the probability that the device immediately sends a response message frame to cause a collision is beneficial to improve the connection efficiency between devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided in the present invention is a communication device comprising: a data interaction module, for receiving a discovery broadcast message frame and transmitting a response message frame of the discovery broadcast message frame, wherein the discovery broadcast message frame is received at a first time point and at least contains a broadcast cycle of the discovery broadcast message frame and/or a second time point for the re-transmission of the discovery broadcast message frame; and a data processing module, for recording the first time point, acquiring the second time point, and determining a third time point between the first time point and the second time point for the data interaction module to transmit the response message frame. The technical solution of the present invention enables the devices receiving the discovery broadcast message frame to respectively determine the corresponding time points for returning the response message frame, thereby reducing the probability of conflict in the prior art due to the fact that the devices all transmit the response message frame immediately, and also contributing to improving the efficiency of connection establishment among the devices.

Description

说 明 书  Description
通信设备和无线通信方法  Communication device and wireless communication method
技术领域  Technical field
本发明涉及无线通信技术领域, 具体而言, 涉及一种通信设备和一种 无线通信方法。 背景技术  The present invention relates to the field of wireless communication technologies, and in particular, to a communication device and a wireless communication method. Background technique
在 WFA(Wi-Fi Alliance)中, 成立了新的研究组 NAN(Neighbor Awareness Networking, 邻居感知网络), 它研究的内容是社交网络, 主要 是将众多的 STA (终端) 怎样发现其它的有共同业务的 STA 并进行文件 共享或是其它业务。  In the WFA (Wi-Fi Alliance), a new research group NAN (Neighbor Awareness Networking) was established. The content of the research is social network, mainly how many STAs (terminals) discover other things together. STAs of the service and perform file sharing or other services.
由于在现有的 802.11 机制中, 不存在服务消息为广播消息的情况, 所以没有专门的机制和方法来定义怎样处理服务广播消息。 但在现有的 802.11 机制中, 对于一般的广播消息而言, STA (终端 )会在接收到该消 息之后马上回复响应消息给广播消息的发送方。 考虑到 NAN 网络中的实 际情况, 可能在一个广播消息发送方 STA 的周围存在着许多响应者, 那 么带来的情况是大量的响应消息在短的时间内回复给广播消息的发送方, 可能引起大量的沖突, 特别是对于隐藏节点来说, 沖突是不可避免的。 具 体示意图如图 1 所示, 由 STA B 发送广播服务发现消息帧, 但是由于 STA A和 STA B它们相互不能侦听到对方所发送的广播消息帧的响应消 息帧, 而相互干扰。  Since there is no case where the service message is a broadcast message in the existing 802.11 mechanism, there is no special mechanism and method to define how to process the service broadcast message. However, in the existing 802.11 mechanism, for a general broadcast message, the STA (terminal) will reply the response message to the sender of the broadcast message immediately after receiving the message. Considering the actual situation in the NAN network, there may be many responders around the broadcast message sender STA. The situation is that a large number of response messages are returned to the sender of the broadcast message in a short time, which may cause A large number of conflicts, especially for hidden nodes, conflicts are inevitable. A specific schematic diagram is shown in Figure 1. The broadcast service discovery message frame is sent by STA B. However, STA A and STA B cannot interfere with each other because they cannot hear each other's response message frame of the broadcast message frame.
因此, 需要一种新的技术方案, 使得接收到发现广播消息帧的设备各 自确定对应的时间点来返回响应消息帧, 降低现有技术中设备均立即发送 响应消息帧而可能产生沖突的可能性, 有利于设备间建立连接效率的提 高。 发明内容 Therefore, a new technical solution is needed, so that devices that receive the discovery broadcast message frame each determine a corresponding time point to return a response message frame, which reduces the possibility that the device in the prior art immediately sends a response message frame and may generate a collision. , which is beneficial to improve the connection efficiency between devices. Summary of the invention
本发明正是基于上述问题, 提出了一种新的技术方案, 使得接收到发 现广播消息帧的设备各自确定对应的时间点来返回响应消息帧, 降低现有 技术中设备均立即发送响应消息帧而产生沖突的可能性, 有利于设备间建 立连接效率的提高。  The present invention is based on the above problem, and proposes a new technical solution, so that devices that receive the discovery broadcast message frame each determine a corresponding time point to return a response message frame, and reduce the device in the prior art to immediately send a response message frame. The possibility of conflicts is conducive to the improvement of the connection efficiency between devices.
有鉴于此, 本发明提出了一种通信设备, 包括: 数据交互模块, 接收 发现广播消息帧, 并发送所述发现广播消息帧的响应消息帧, 其中, 所述 发现广播消息帧在第一时间点被接收, 且所述发现广播消息帧中至少包含 所述发现广播消息帧的广播周期和 /或所述发现广播消息帧被再次发送的 第二时间点; 数据处理模块, 记录所述第一时间点, 获取所述第二时间点 或在所述发现广播消息帧中仅包含所述广播周期的情况下, 根据所述广播 周期计算得到所述第二时间点, 并在所述第一时间点与所述第二时间点之 间确定第三时间点, 以用于所述数据交互模块发送所述响应消息帧。  In view of the above, the present invention provides a communication device, including: a data interaction module, receiving a discovery broadcast message frame, and transmitting a response message frame of the discovery broadcast message frame, where the discovery broadcast message frame is at a first time a point is received, and the discovery broadcast message frame includes at least a broadcast period of the discovery broadcast message frame and/or a second time point at which the discovery broadcast message frame is retransmitted; a data processing module, recording the first a time point, where the second time point is acquired or the broadcast period is included in the discovery broadcast message frame, the second time point is calculated according to the broadcast period, and at the first time A third time point is determined between the point and the second time point for the data interaction module to send the response message frame.
在该技术方案中, 通信设备可以是手机或是平板, 也可以是路由器等 设备, 数据处理模块可以是通信设备中数据处理的芯片模块, 而数据交互 模块则相当于信号收发装置以及天线等。 优选地, 上述通信设备为支持 In the technical solution, the communication device may be a mobile phone or a tablet, or may be a device such as a router, the data processing module may be a chip module for data processing in the communication device, and the data interaction module is equivalent to a signal transceiver device and an antenna. Preferably, the above communication device is supported
NAN 功能的设备。 在 NAN 网络中, 通信设备在接收到发现广播消息帧 时, 默认处理方式是立即返回响应消息帧, 但这对于发现广播消息帧的发 送方而言, 当返回响应消息帧的设备数量过多时, 可能在发送方造成沖 突, 从而影响到设备间的连接效率。 因此, 通过由设备记录接收到发现广 播消息帧的第一时间点 (假定为 T1 ) ; 同时可以从发现广播消息帧中解 析出发送方再次发送的第二时间点 (假定为 T2 ) , 当然, 一种情况下, 可能直接从发现广播消息帧中解析出 T2 , 另一种情况下, 首先解析得到 上述消息帧的发送周期 (假定为 T ) , 则计算得到第二时间点为 T2=T1+T; 然后, 在 T1 和 Τ2之间选取第三时间点 (假定为 Τ3 ) , 并在 Τ3 发送响应消息帧。 由于各个设备分别选取自身对应的 Τ3 , 因此, 降低 了同一时间发送响应消息帧的概率, 降低或避免了产生沖突的概率, 也有 利于设备间建立连接效率的提高。 NAN-enabled device. In the NAN network, when the communication device receives the discovery broadcast message frame, the default processing method is to immediately return the response message frame, but for the sender of the broadcast message frame, when the number of devices returning the response message frame is too large, It may cause conflicts on the sender, which affects the connection efficiency between devices. Therefore, by receiving, by the device, the first time point of the discovery broadcast message frame is received (assumed to be T1); at the same time, the second time point (assumed to be T2) that the sender transmits again can be parsed from the discovery broadcast message frame, of course, In one case, T2 may be parsed directly from the discovery broadcast message frame. In the other case, the transmission period of the message frame is first parsed (assumed to be T), and the second time point is calculated as T2=T1+ T; Then, select the third time point between T1 and Τ2 (assumed to be Τ3), and send a response message frame at Τ3. Since each device selects its own corresponding Τ3, the probability of sending a response message frame at the same time is reduced, the probability of collision is reduced or avoided, and the connection efficiency between devices is improved.
在上述技术方案中, 优选地, 所述第三时间点是所述数据处理模块随 机选取的时间点。 In the above technical solution, preferably, the third time point is the data processing module The time point selected by the machine.
在该技术方案中, T3 是随机选取的, 它的选取方式可以是在 T1 和 T2之间选取一个任意的时间点或者是 T 1 和 T2之间的一段时长, 这个时 长可以是由时间单位 ( Time Unit, TU ) 乘以一定的整数 m得来的, T3的 选取也可以是在 0 至 m之间随机的选取一个整数 n, 然后再乘以 TU得 到, 由于所有需要返回响应消息帧的 T3 时间点都相同的概率非常低, 能 够有效降低或避免了发送消息沖突的概率, 也有利于设备间建立连接效率 的提高。  In this technical solution, T3 is randomly selected, and may be selected by selecting an arbitrary time point between T1 and T2 or a period of time between T1 and T2, which may be a time unit ( Time Unit, TU ) is multiplied by a certain integer m. T3 can also be selected by randomly selecting an integer n between 0 and m, and then multiplying by TU, because all T3s that need to return a response message frame are needed. The probability that the time points are the same is very low, which can effectively reduce or avoid the probability of sending message conflicts, and also improve the connection efficiency between devices.
在上述技术方案中, 优选地, 所述数据交互模块接收到的所述发现广 播消息帧为服务发现广播消息帧、 设备发现广播消息帧或服务及设备发现 广播消息帧。  In the above technical solution, preferably, the discovery broadcast message frame received by the data interaction module is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame.
在该技术方案中, 服务发现广播消息帧中包含服务消息类型, 用于将 发送方所支持的服务类型告知接收到该消息帧的设备。 设备发现广播消息 帧中包含设备类型, 用于将发送方的设备类型告知接收到该消息帧的设 备。 服务及设备发现广播消息帧中则包含服务消息类型和 /或设备类型, 从而将发送方的相关消息告知接收到该消息帧的设备。  In this technical solution, the service discovery broadcast message frame includes a service message type for informing the device receiving the message frame of the type of service supported by the sender. Device Discovery Broadcast Message The frame contains the device type, which is used to inform the sender of the device type of the device that received the message frame. The service and device discovery broadcast message frame contains the service message type and/or device type, so that the sender's related message is notified to the device that received the message frame.
在上述技术方案中, 优选地, 所述数据处理模块在确定所述第三时间 点之前, 还从所述发现广播消息帧中获取时间同步功能参数, 并利用所述 时间同步功能参数与所述发现广播消息帧的发送方进行时间同步。  In the above technical solution, preferably, the data processing module further acquires a time synchronization function parameter from the discovery broadcast message frame before determining the third time point, and uses the time synchronization function parameter and the The sender of the broadcast message frame is found to be time synchronized.
在该技术方案中, 由于设备间遵循的时间可能并不同步, 因而通过发 现广播消息帧中的 TSF ( Time Synchronization Function, 时间同步功能参 数) 信息, 实现消息帧的发送方与接收方之间的时间同步, 以利于对 T3 的确定, 避免计算得到的 T3 无法使用 (如大于发现功能消息帧的发送周 期等) 。  In this technical solution, since the time that the devices follow may not be synchronized, the TSF (Time Synchronization Function) information in the broadcast message frame is found, and the sender and the receiver of the message frame are implemented. Time synchronization, in order to facilitate the determination of T3, to avoid the calculation of T3 can not be used (such as greater than the transmission period of the discovery function message frame, etc.).
在上述技术方案中, 优选地, 所述数据处理模块还从所述发现广播消 息帧中获取设备类型标识位或消息帧类型标识位, 所述设备类型标识位或 消息帧类型标识位的值表示所述发现广播消息帧的发送方是否为邻居感知 网络设备或所述发现广播消息帧是否为邻居感知网络消息帧。  In the above technical solution, the data processing module further obtains a device type identifier bit or a message frame type identifier bit from the discovery broadcast message frame, where the value of the device type identifier bit or the message frame type identifier bit is represented. Whether the sender of the discovery broadcast message frame is a neighbor aware network device or whether the discovery broadcast message frame is a neighbor aware network message frame.
在该技术方案中, 由广播消息帧的类型有很多, 有些可能并不是发现 广播消息帧, 并不用于 NAN 设备间的发现连接, 因此, 消息帧的发送方 需要标明自身的身份, 即是否为 NAN 设备, 若是, 接收方才会执行解析 该消息帧等操作, 否则无需执行。 In this technical solution, there are many types of broadcast message frames, and some may not be found. Broadcast message frames are not used for discovery connections between NAN devices. Therefore, the sender of a message frame needs to indicate its identity, that is, whether it is a NAN device. If it is, the receiver will perform operations such as parsing the message frame. Otherwise, it does not need to be executed.
在上述技术方案中, 优选地, 所述数据处理模块从所述发现广播消息 帧的媒介访问控制帧的帧头的帧控制域中确定所述设备类型标识位或消息 帧类型标识位的值。  In the above technical solution, preferably, the data processing module determines the value of the device type identifier bit or the message frame type identifier bit from a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 可以利用消息帧的 MAC ( Medium Access Control, 媒介访问控制) 帧的帧头的帧控制域中的一个或多个预留位, 来 放置设备类型标识位或消息帧类型标识位, 以表明该消息帧的发送方对服 务消息的支持情况。  In this technical solution, one or more reserved bits in a frame control domain of a frame header of a MAC (Medium Access Control) frame of a message frame may be used to place a device type identifier bit or a message frame type identifier. Bit, to indicate the support of the sender of the message frame for the service message.
在上述技术方案中, 优选地, 所述数据处理模块从所述发现广播消息 帧的媒介访问控制帧的帧头的帧控制域的类型子域和子类型子域中确定所 述设备类型标识位或消息帧类型标识位的值。  In the above technical solution, preferably, the data processing module determines the device type identifier bit from a type subfield and a subtype subdomain of a frame control field of a frame header of a medium access control frame of the discovery broadcast message frame or The value of the message frame type identification bit.
在该技术方案中, 具体地, 比如可以利用类型子域中的 " 11 " 、 子类 型子域中的 "0000" 对应的预留位, 来放置设备类型标识位或消息帧类型 标识位, 以表明该消息帧的发送方对服务消息的支持情况。 当该预设位置 的值与预设的值相匹配时, 判定消息帧的发送方为 NAN 设备; 否则认为 不是 NAN 设备, 若该消息帧的目的地址不是该消息帧的接收方, 则丟弃 该消息帧。  In this technical solution, for example, the device type identifier bit or the message frame type identifier bit may be placed by using the "11" in the type sub-domain and the reserved bit corresponding to "0000" in the sub-type sub-domain. Indicates the support of the sender of the message frame to the service message. When the value of the preset position matches the preset value, it is determined that the sender of the message frame is a NAN device; otherwise, it is considered not to be a NAN device, and if the destination address of the message frame is not the receiver of the message frame, the device is discarded. The message frame.
在上述技术方案中, 优选地, 在所述发现广播消息帧为服务发现广播 消息帧或服务及设备发现广播消息帧的情况下, 所述数据处理模块还从所 述发现广播消息帧中获取服务类型标识位, 所述服务类型标识位的值表示 所述发现广播消息帧对应的服务消息类型和 /或服务消息的具体信息。  In the above technical solution, preferably, in a case that the discovery broadcast message frame is a service discovery broadcast message frame or a service and device discovery broadcast message frame, the data processing module further obtains a service from the discovery broadcast message frame. A type identifier bit, where the value of the service type identifier bit indicates specific information of a service message type and/or a service message corresponding to the discovery broadcast message frame.
在该技术方案中, 对于服务发现广播消息帧和服务及设备发现广播消 息帧, 可以直接确定该消息帧的发送方对于服务消息的支持情况, 从而确 定是否连接至该发送方设备。  In this technical solution, for the service discovery broadcast message frame and the service and device discovery broadcast message frame, the support of the sender of the message frame for the service message can be directly determined to determine whether to connect to the sender device.
在上述技术方案中, 优选地, 所述数据处理模块从所述发现广播消息 帧的媒介访问控制帧的帧头部分确定所述服务类型标识位的值。  In the above technical solution, preferably, the data processing module determines a value of the service type identifier bit from a header portion of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 可以利用 MAC 帧的帧头部分的一个或多个预留 位, 来放置该服务类型标识位。 具体地, 比如在 MAC 帧的帧头部分包含 A ( Address ) 1、 A2、 A3域, 其中, Al域用于描述目的地址, A2域用于 描述源地址, 考虑到 NAN 网络的实际特点, 相当于每个 NAN设备独立 的与其它的 NAN设备连接, 而不需要另外设备的辅助, 那么 A3 地址在 NAN网络中是不可能用到的, 那么可以用它来作为 NAN设备的服务类型 标识位。 In this technical solution, one or more reservations of the frame header portion of the MAC frame may be utilized. Bit, to place the service type identifier bit. Specifically, for example, the frame header portion of the MAC frame includes A (Address) 1, A2, and A3 fields, where the Al field is used to describe the destination address, and the A2 field is used to describe the source address, considering the actual characteristics of the NAN network, Since each NAN device is independently connected to other NAN devices without the assistance of another device, the A3 address is not available in the NAN network, and then it can be used as the service type identifier of the NAN device.
在上述技术方案中, 优选地, 所述数据处理模块从所述发现广播消息 帧的媒介访问控制帧的帧体部分的秩序域中确定所述服务类型标识位的 值。  In the above technical solution, preferably, the data processing module determines a value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 也可以利用 MAC 帧的帧体部分的一个或多个预留 位来放置该服务类型标识位。 具体地, 该预留位可以位于 MAC 帧的帧体 部分的秩序域中, 当然服务类型标识位也可以以信息元素 (IE ) 的形式出 现, 被放置在帧体的某个秩序域中, 例如放置在秩序域 26 , 当然也可以 放置在其它秩序域。  In this technical solution, the service type identifier bit may also be placed by using one or more reserved bits of the frame body portion of the MAC frame. Specifically, the reserved bit may be located in the order domain of the frame body part of the MAC frame. Of course, the service type identifier bit may also appear in the form of an information element (IE), and is placed in an order domain of the frame body, for example Placed in the order domain 26, of course, can also be placed in other order domains.
本发明还提出了一种无线通信方法, 包括: 接收发现广播消息帧, 并 记录接收时的第一时间点; 所述发现广播消息帧中至少包含所述发现广播 消息帧的广播周期和 /或所述发现广播消息帧被再次发送的第二时间点, 其中, 当所述发现广播消息帧中仅包含所述广播周期时, 根据所述广播周 期计算得到所述第二时间点; 在所述第一时间点与所述第二时间 , 、之间确 定第三时间点, 以用于发送所述发现广播消息帧的响应消息帧。  The present invention also provides a wireless communication method, including: receiving a discovery broadcast message frame, and recording a first time point of reception; the discovery broadcast message frame includes at least a broadcast period of the discovery broadcast message frame and/or The second time point of the discovery that the broadcast message frame is resent, wherein when the discovery broadcast message frame only includes the broadcast period, the second time point is calculated according to the broadcast period; A third time point is determined between the first time point and the second time, for transmitting the response message frame of the discovery broadcast message frame.
在该技术方案中, 通信设备可以是手机或是平板, 也可以是路由器等 设备, 数据处理模块可以是通信设备中数据处理的芯片模块, 而数据交互 模块则相当于信号收发装置以及天线等。 优选地, 上述通信设备为支持 NAN 功能的设备。 在 NAN 网络中, 通信设备在接收到发现广播消息帧 时, 默认处理方式是立即返回响应消息帧, 但这对于发现广播消息帧的发 送方而言, 当返回响应消息帧的设备数量过多时, 可能在发送方造成沖 突, 从而影响到设备间的连接效率。 因此, 通过由设备记录接收到发现广 播消息帧的第一时间点 (假定为 T1 ) ; 同时可以从发现广播消息帧中解 析出发送方再次发送的第二时间点 (假定为 T2 ) , 当然, 一种情况下, 可能直接从发现广播消息帧中解析出 T2 , 另一种情况下, 首先解析得到 上述消息帧的发送周期 (假定为 T ) , 则计算得到第二时间点为 T2=T1+T; 然后, 在 T1 和 Τ2之间选取第三时间点 (假定为 Τ3 ) , 并在 Τ3 发送响应消息帧。 由于各个设备分别选取自身对应的 Τ3 , 因此, 降低 了同一时间发送响应消息帧的概率, 降低或避免了产生沖突的概率, 也有 利于设备间建立连接效率的提高。 In this technical solution, the communication device may be a mobile phone or a tablet, or may be a device such as a router, the data processing module may be a chip module for data processing in the communication device, and the data interaction module is equivalent to a signal transceiver device and an antenna. Preferably, the communication device is a device supporting the NAN function. In the NAN network, when the communication device receives the discovery broadcast message frame, the default processing method is to immediately return the response message frame, but for the sender of the broadcast message frame, when the number of devices returning the response message frame is too large, It may cause conflicts on the sender, which affects the connection efficiency between devices. Therefore, by receiving, by the device, the first time point of the discovery broadcast message frame is received (assumed to be T1); at the same time, the second time point (assumed to be T2) that the sender transmits again can be parsed from the discovery broadcast message frame, of course, In one case, It is possible to parse T2 directly from the discovery broadcast message frame. In the other case, firstly parsing the transmission period of the above message frame (assumed to be T), the second time point is calculated as T2=T1+T; The third time point is selected between T1 and Τ2 (assumed to be Τ3), and a response message frame is sent at Τ3. Since each device selects its own corresponding Τ3, the probability of sending a response message frame at the same time is reduced, the probability of collision is reduced or avoided, and the connection efficiency between devices is also improved.
在上述技术方案中, 优选地, 还包括: 所述第三时间点为随机选取的 时间点。  In the above technical solution, preferably, the method further includes: the third time point is a randomly selected time point.
在该技术方案中, Τ3 是随机选取的, 它的选取方式可以是在 T1 和 Τ2之间选取一个任意的时间点或者是 T1 和 Τ2之间的一段时长, 这个时 长可以是由时间单位 ( Time Unit, TU ) 乘以一定的整数 m得来的, T3的 选取也可以是在 0 至 m之间随机的选取一个整数 n, 然后再乘以 TU得 到, 由于所有需要返回响应消息帧的 T3 时间点都相同的概率非常低, 能 够有效降低或避免了发送消息沖突的概率, 也有利于设备间建立连接效率 的提高。  In this technical solution, Τ3 is randomly selected, and it may be selected by selecting an arbitrary time point between T1 and Τ2 or a period of time between T1 and Τ2, which may be a time unit (Time) Unit, TU) is multiplied by a certain integer m. The choice of T3 can also be randomly selected from 0 to m to select an integer n, and then multiplied by TU, because all the T3 time needed to return the response message frame. The probability that the points are all the same is very low, which can effectively reduce or avoid the probability of sending message conflicts, and also improve the connection efficiency between devices.
在上述技术方案中, 优选地, 还包括: 所述发现广播消息帧为服务发 现广播消息帧、 设备发现广播消息帧或服务及设备发现广播消息帧。  In the above technical solution, preferably, the method further includes: the discovery broadcast message frame is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame.
在该技术方案中, 服务发现广播消息帧中包含服务消息类型, 用于将 发送方所支持的服务类型告知接收到该消息帧的设备。 设备发现广播消息 帧中包含设备类型, 用于将发送方的设备类型告知接收到该消息帧的设 备。 服务及设备发现广播消息帧中则包含服务消息类型和 /或设备类型, 从而将发送方的相关消息告知接收到该消息帧的设备。  In this technical solution, the service discovery broadcast message frame includes a service message type for informing the device receiving the message frame of the type of service supported by the sender. Device Discovery Broadcast Message The frame contains the device type, which is used to inform the sender of the device type of the device that received the message frame. The service and device discovery broadcast message frame contains the service message type and/or device type, so that the sender's related message is notified to the device that received the message frame.
在上述技术方案中, 优选地, 在确定所述第三时间点之前, 还包括: 从所述发现广播消息帧中获取时间同步功能参数, 并利用所述时间同步功 能参数与所述发现广播消息帧的发送方进行时间同步。  In the above technical solution, preferably, before determining the third time point, the method further includes: acquiring a time synchronization function parameter from the discovery broadcast message frame, and using the time synchronization function parameter and the discovery broadcast message The sender of the frame performs time synchronization.
在该技术方案中, 由于设备间遵循的时间可能并不同步, 因而通过发 现广播消息帧中的 TSF ( Time Synchronization Function, 时间同步功能参 数) 信息, 实现消息帧的发送方与接收方之间的时间同步, 以利于对 T3 的确定, 避免计算得到的 T3 无法使用 (如大于发现功能消息帧的发送周 期等) 。 In this technical solution, since the time that the devices follow may not be synchronized, the TSF (Time Synchronization Function) information in the broadcast message frame is found, and the sender and the receiver of the message frame are implemented. Time synchronization, to facilitate the determination of T3, to avoid the calculation of T3 can not be used (such as greater than the transmission week of the discovery function message frame Period, etc.).
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧中获取 设备类型标识位或消息帧类型标识位, 所述设备类型标识位或消息帧类型 标识位的值表示所述发现广播消息帧的发送方是否为邻居感知网络设备或 所述发现广播消息帧是否为邻居感知网络消息帧。  In the above technical solution, preferably, the method further includes: acquiring a device type identifier bit or a message frame type identifier bit from the discovery broadcast message frame, where the value of the device type identifier bit or the message frame type identifier bit indicates the discovery Whether the sender of the broadcast message frame is a neighbor aware network device or whether the discovery broadcast message frame is a neighbor aware network message frame.
在该技术方案中, 由广播消息帧的类型有很多, 有些可能并不是发现 广播消息帧, 并不用于 NAN 设备间的发现连接, 因此, 消息帧的发送方 需要标明自身的身份, 即是否为 NAN 设备, 若是, 接收方才会执行解析 该消息帧等操作, 否则无需执行。  In this technical solution, there are many types of broadcast message frames, some may not discover broadcast message frames, and are not used for discovery connections between NAN devices. Therefore, the sender of the message frame needs to indicate its identity, that is, whether it is The NAN device, if it is, the receiver will perform operations such as parsing the message frame, otherwise it will not need to be executed.
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧的媒介 访问控制帧的帧头的帧控制域中确定所述设备类型标识位或消息帧类型标 识位的值。  In the above technical solution, preferably, the method further includes: determining a value of the device type identifier bit or the message frame type identifier bit from a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 可以利用消息帧的 MAC ( Medium Access Control, 媒介访问控制) 帧的帧头的帧控制域中的一个或多个预留位, 来 放置设备类型标识位或消息帧类型标识位, 以表明该消息帧的发送方对服 务消息的支持情况。  In this technical solution, one or more reserved bits in a frame control domain of a frame header of a MAC (Medium Access Control) frame of a message frame may be used to place a device type identifier bit or a message frame type identifier. Bit, to indicate the support of the sender of the message frame for the service message.
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧的媒介 访问控制帧的帧头的帧控制域的类型子域和子类型子域中确定所述设备类 型标识位或消息帧类型标识位的值。  In the foregoing technical solution, preferably, the method further includes: determining, according to a type subfield and a subtype subfield of a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame, the device type identifier bit or a message frame. The value of the type identifier bit.
在该技术方案中, 具体地, 比如可以利用类型子域中的 " 11 " 、 子类 型子域中的 "0000" 对应的预留位, 来放置设备类型标识位或消息帧类型 标识位, 以表明该消息帧的发送方对服务消息的支持情况。 当该预设位置 的值与预设的值相匹配时, 判定消息帧的发送方为 NAN 设备; 否则认为 不是 NAN 设备, 若该消息帧的目的地址不是该消息帧的接收方, 则丟弃 该消息帧。  In this technical solution, for example, the device type identifier bit or the message frame type identifier bit may be placed by using the "11" in the type sub-domain and the reserved bit corresponding to "0000" in the sub-type sub-domain. Indicates the support of the sender of the message frame to the service message. When the value of the preset position matches the preset value, it is determined that the sender of the message frame is a NAN device; otherwise, it is considered not to be a NAN device, and if the destination address of the message frame is not the receiver of the message frame, the device is discarded. The message frame.
在上述技术方案中, 优选地, 当所述发现广播消息帧为服务发现广播 消息帧或服务及设备发现广播消息帧时, 还包括: 从所述发现广播消息帧 中获取服务类型标识位, 所述服务类型标识位的值表示所述发现广播消息 帧对应的服务消息类型和 /或服务消息的具体信息。 在该技术方案中, 对于服务发现广播消息帧和服务及设备发现广播消 息帧, 可以直接确定该消息帧的发送方对于服务消息的支持情况, 从而确 定是否连接至该发送方设备。 In the above technical solution, preferably, when the discovery broadcast message frame is a service discovery broadcast message frame or a service and device discovery broadcast message frame, the method further includes: acquiring a service type identifier bit from the discovery broadcast message frame, where The value of the service type identifier bit indicates the specific information of the service message type and/or the service message corresponding to the discovery broadcast message frame. In this technical solution, for the service discovery broadcast message frame and the service and device discovery broadcast message frame, the support of the sender of the message frame for the service message may be directly determined to determine whether to connect to the sender device.
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧的媒介 访问控制帧的帧头部分确定所述服务类型标识位的值。  In the above technical solution, preferably, the method further includes: determining a value of the service type identifier bit from a header portion of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 可以利用 MAC 帧的帧头部分的一个或多个预留 位, 来放置该服务类型标识位。 具体地, 比如在 MAC 帧的帧头部分包含 A ( Address ) 1、 A2、 A3域, 其中, Al域用于描述目的地址, A2域用于 描述源地址, 考虑到 NAN 网络的实际特点, 相当于每个 NAN设备独立 的与其它的 NAN设备连接, 而不需要另外设备的辅助, 那么 A3 地址在 NAN网络中是不可能用到的, 那么可以用它来作为 NAN设备的服务类型 标识位。  In this technical solution, the service type identification bit can be placed by using one or more reserved bits of the header portion of the MAC frame. Specifically, for example, the frame header portion of the MAC frame includes A (Address) 1, A2, and A3 fields, where the Al field is used to describe the destination address, and the A2 field is used to describe the source address, considering the actual characteristics of the NAN network, Since each NAN device is independently connected to other NAN devices without the assistance of another device, the A3 address is not available in the NAN network, and then it can be used as the service type identifier of the NAN device.
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧的媒介 访问控制帧的帧体部分的秩序域中确定所述服务类型标识位的值。  In the above technical solution, preferably, the method further includes: determining a value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 也可以利用 MAC 帧的帧体部分的一个或多个预留 位来放置该服务类型标识位。 具体地, 该预留位可以位于 MAC 帧的帧体 部分的秩序域中, 当然服务类型标识位也可以以信息元素 (IE ) 的形式出 现, 被放置在帧体的某个秩序域中, 例如放置在秩序域 26 , 当然也可以 放置在其它秩序域。  In this technical solution, the service type identifier bit may also be placed by using one or more reserved bits of the frame body portion of the MAC frame. Specifically, the reserved bit may be located in the order domain of the frame body part of the MAC frame. Of course, the service type identifier bit may also appear in the form of an information element (IE), and is placed in an order domain of the frame body, for example Placed in the order domain 26, of course, can also be placed in other order domains.
通过以上技术方案, 可以使得接收到发现广播消息帧的设备各自确定 对应的时间点来返回响应消息帧, 降低现有技术中设备均立即发送响应消 息帧而产生沖突的可能性, 有利于设备间建立连接效率的提高。 附图说明  With the above technical solution, the devices that receive the discovery broadcast message frame can respectively determine the corresponding time point to return the response message frame, which reduces the possibility that the devices in the prior art immediately send the response message frame to generate a conflict, which is beneficial to the device room. Establish an increase in connection efficiency. DRAWINGS
图 1示出了现有技术中多个设备之间产生干扰的示意图;  FIG. 1 is a schematic diagram showing interference between a plurality of devices in the prior art;
图 2示出了根据本发明的实施例的通信设备的框图;  2 shows a block diagram of a communication device in accordance with an embodiment of the present invention;
图 3示出了根据本发明的实施例的无线通信方法的流程图;  FIG. 3 shows a flow chart of a method of wireless communication in accordance with an embodiment of the present invention; FIG.
图 4示出了根据本发明的实施例的对发现广播消息帧的具体处理流程 具体实施方式 FIG. 4 illustrates a specific processing flow for discovering a broadcast message frame according to an embodiment of the present invention. detailed description
为了能够更清楚地理解本发明的上述目的、 特征和优点, 下面结合附 图和具体实施方式对本发明进行进一步的详细描述。 需要说明的是, 在不 沖突的情况下, 本申请的实施例及实施例中的特征可以相互组合。  The above described objects, features and advantages of the present invention will be more fully understood from the following detailed description. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments of the present application may be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本发明, 但是, 本发明还可以采用其他不同于在此描述的其他方式来实施, 因此, 本发明 的保护范围并不受下面公开的具体实施例的限制。  In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the invention may be practiced otherwise than as described herein. Limitations of the embodiments.
图 2示出了根据本发明的实施例的通信设备的框图。  2 shows a block diagram of a communication device in accordance with an embodiment of the present invention.
如图 2所示, 根据本发明的实施例的通信设备 200 , 包括: 数据交互 模块 202 , 接收发现广播消息帧, 并发送所述发现广播消息帧的响应消息 帧, 其中, 所述发现广播消息帧在第一时间点被接收, 且所述发现广播消 息帧中至少包含所述发现广播消息帧的广播周期和 /或所述发现广播消息 帧被再次发送的第二时间点; 数据处理模块 204 , 记录所述第一时间点, 获取所述第二时间点或在所述发现广播消息帧中仅包含所述广播周期的情 况下, 根据所述广播周期计算得到所述第二时间点, 并在所述第一时间点 与所述第二时间点之间确定第三时间点, 以用于所述数据交互模块 202发 送所述响应消息帧。  As shown in FIG. 2, the communication device 200 according to the embodiment of the present invention includes: a data interaction module 202, receiving a discovery broadcast message frame, and transmitting a response message frame of the discovery broadcast message frame, where the discovery broadcast message The frame is received at a first time point, and the discovery broadcast message frame includes at least a broadcast period of the discovery broadcast message frame and/or a second time point at which the discovery broadcast message frame is retransmitted; the data processing module 204 Recording the first time point, obtaining the second time point, or calculating only the broadcast period in the discovery broadcast message frame, calculating the second time point according to the broadcast period, and A third time point is determined between the first time point and the second time point for the data interaction module 202 to send the response message frame.
在该技术方案中, 通信设备 200可以是手机或是平板, 也可以是路由 器等设备, 数据处理模块 204 可以是通信设备 200 中数据处理的芯片模 块, 而数据交互模块 202则相当于信号收发装置以及天线等。 优选地, 上 述通信设备 200为支持 NAN功能的设备。 在 NAN网络中, 通信设备 200 在接收到发现广播消息帧时, 默认处理方式是立即返回响应消息帧, 但这 对于发现广播消息帧的发送方而言, 当返回响应消息帧的设备数量过多 时, 可能在发送方造成沖突, 从而影响到设备间的连接效率。 因此, 通过 由设备记录接收到发现广播消息帧的第一时间点 (假定为 T1 ) ; 同时可 以从发现广播消息帧中解析出发送方再次发送的第二时间点 (假定为 T2 ) , 当然, 一种情况下, 可能直接从发现广播消息帧中解析出 T2 , 另 一种情况下, 首先解析得到上述消息帧的发送周期 (假定为 T ) , 则计算 得到第二时间点为 T2=T1+T; 然后, 在 T1 和 Τ2 之间选取第三时间点 (假定为 T3 ) , 并在 Τ3发送响应消息帧。 由于各个设备分别选取自身对 应的 Τ3 , 因此, 降低了同一时间发送响应消息帧的概率, 降低或避免了 产生沖突的概率, 也有利于设备间建立连接效率的提高。 In this technical solution, the communication device 200 may be a mobile phone or a tablet, or may be a device such as a router, the data processing module 204 may be a chip module for data processing in the communication device 200, and the data interaction module 202 is equivalent to a signal transceiver device. And antennas, etc. Preferably, the communication device 200 is a device supporting the NAN function. In the NAN network, when the communication device 200 receives the discovery broadcast message frame, the default processing method is to immediately return the response message frame, but this is true for the sender of the broadcast message frame when the number of devices returning the response message frame is too large. , may cause conflicts on the sender, which affects the connection efficiency between devices. Therefore, by receiving, by the device, the first time point of the discovery broadcast message frame is received (assumed to be T1); at the same time, the second time point (assumed to be T2) that the sender transmits again can be parsed from the discovery broadcast message frame, of course, In one case, T2 may be parsed directly from the discovery broadcast message frame. In the other case, the transmission period of the message frame is first parsed (assumed to be T), and the second time point is calculated as T2=T1+ T; Then, select the third time point between T1 and Τ2 (assumed to be T3), and send a response message frame at Τ3. Since each device selects its own corresponding Τ3, the probability of sending a response message frame at the same time is reduced, the probability of collision is reduced or avoided, and the connection efficiency between devices is also improved.
在上述技术方案中, 优选地, 所述第三时间点是所述数据处理模块 204随机选取的时间点。  In the above technical solution, preferably, the third time point is a time point randomly selected by the data processing module 204.
在该技术方案中, Τ3 是随机选取的, 它的选取方式可以是在 T1 和 Τ2之间选取一个任意的时间点或者是 T1 和 Τ2之间的一段时长, 这个时 长可以是由时间单位 ( Time Unit, TU ) 乘以一定的整数 m得来的, T3的 选取也可以是在 0 至 m之间随机的选取一个整数 n, 然后再乘以 TU得 到, 由于所有需要返回响应消息帧的 T3 时间点都相同的概率非常低, 能 够有效降低或避免了发送消息沖突的概率, 也有利于设备间建立连接效率 的提高。  In this technical solution, Τ3 is randomly selected, and it may be selected by selecting an arbitrary time point between T1 and Τ2 or a period of time between T1 and Τ2, which may be a time unit (Time) Unit, TU) is multiplied by a certain integer m. The choice of T3 can also be randomly selected from 0 to m to select an integer n, and then multiplied by TU, because all the T3 time needed to return the response message frame. The probability that the points are all the same is very low, which can effectively reduce or avoid the probability of sending message conflicts, and also improve the connection efficiency between devices.
在上述技术方案中, 优选地, 所述数据交互模块 202接收到的所述发 现广播消息帧为服务发现广播消息帧、 设备发现广播消息帧或服务及设备 发现广播消息帧。  In the above technical solution, preferably, the discovery broadcast message frame received by the data interaction module 202 is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame.
在该技术方案中, 服务发现广播消息帧中包含服务消息类型, 用于将 发送方所支持的服务类型告知接收到该消息帧的设备。 设备发现广播消息 帧中包含设备类型, 用于将发送方的设备类型告知接收到该消息帧的设 备。 服务及设备发现广播消息帧中则包含服务消息类型和 /或设备类型, 从而将发送方的相关消息告知接收到该消息帧的设备。  In this technical solution, the service discovery broadcast message frame includes a service message type for informing the device receiving the message frame of the type of service supported by the sender. Device Discovery Broadcast Message The frame contains the device type, which is used to inform the sender of the device type of the device that received the message frame. The service and device discovery broadcast message frame contains the service message type and/or device type, so that the sender's related message is notified to the device that received the message frame.
在上述技术方案中, 优选地, 所述数据处理模块 204在确定所述第三 时间点之前, 还从所述发现广播消息帧中获取时间同步功能参数, 并利用 所述时间同步功能参数与所述发现广播消息帧的发送方进行时间同步。  In the above technical solution, preferably, the data processing module 204 further acquires a time synchronization function parameter from the discovery broadcast message frame, and uses the time synchronization function parameter and the location before determining the third time point. It is found that the sender of the broadcast message frame performs time synchronization.
在该技术方案中, 由于设备间遵循的时间可能并不同步, 因而通过发 现广播消息帧中的 TSF ( Time Synchronization Function, 时间同步功能参 数) 信息, 实现消息帧的发送方与接收方之间的时间同步, 以利于对 T3 的确定, 避免计算得到的 T3 无法使用 (如大于发现功能消息帧的发送周 期等) 。  In this technical solution, since the time that the devices follow may not be synchronized, the TSF (Time Synchronization Function) information in the broadcast message frame is found, and the sender and the receiver of the message frame are implemented. Time synchronization, in order to facilitate the determination of T3, to avoid the calculation of T3 can not be used (such as greater than the transmission period of the discovery function message frame, etc.).
在上述技术方案中, 优选地, 所述数据处理模块 204还从所述发现广 播消息帧中获取设备类型标识位或消息帧类型标识位, 所述设备类型标识 位或消息帧类型标识位的值表示所述发现广播消息帧的发送方是否为邻居 感知网络设备或所述发现广播消息帧是否为邻居感知网络消息帧。 In the above technical solution, preferably, the data processing module 204 is further widely Obtaining a device type identifier bit or a message frame type identifier bit in the broadcast message frame, where the value of the device type identifier bit or the message frame type identifier bit indicates whether the sender of the discovery broadcast message frame is a neighbor aware network device or the discovery Whether the broadcast message frame is a neighbor-aware network message frame.
在该技术方案中, 由广播消息帧的类型有很多, 有些可能并不是发现 广播消息帧, 并不用于 NAN 设备间的发现连接, 因此, 消息帧的发送方 需要标明自身的身份, 即是否为 NAN 设备, 若是, 接收方才会执行解析 该消息帧等操作, 否则无需执行。  In this technical solution, there are many types of broadcast message frames, some may not discover broadcast message frames, and are not used for discovery connections between NAN devices. Therefore, the sender of the message frame needs to indicate its identity, that is, whether it is The NAN device, if it is, the receiver will perform operations such as parsing the message frame, otherwise it will not need to be executed.
在上述技术方案中, 优选地, 所述数据处理模块 204从所述发现广播 消息帧的媒介访问控制帧的帧头的帧控制域中确定所述设备类型标识位或 消息帧类型标识位的值。  In the above technical solution, preferably, the data processing module 204 determines the value of the device type identifier bit or the message frame type identifier bit from a frame control domain of a frame header of a medium access control frame of the discovery broadcast message frame. .
在该技术方案中, 可以利用消息帧的 MAC ( Medium Access Control, 媒介访问控制) 帧的帧头的帧控制域中的一个或多个预留位, 来 放置设备类型标识位或消息帧类型标识位, 以表明该消息帧的发送方对服 务消息的支持情况。  In this technical solution, one or more reserved bits in a frame control domain of a frame header of a MAC (Medium Access Control) frame of a message frame may be used to place a device type identifier bit or a message frame type identifier. Bit, to indicate the support of the sender of the message frame for the service message.
在上述技术方案中, 优选地, 所述数据处理模块 204从所述发现广播 消息帧的媒介访问控制帧的帧头的帧控制域的类型子域和子类型子域中确 定所述设备类型标识位或消息帧类型标识位的值。  In the above technical solution, preferably, the data processing module 204 determines the device type identifier bit from a type sub-domain and a sub-type sub-domain of a frame control field of a frame header of a medium access control frame of the discovery broadcast message frame. Or the value of the message frame type identifier bit.
在该技术方案中, 具体地, 比如可以利用类型子域中的 " 11 " 、 子类 型子域中的 "0000" 对应的预留位, 来放置设备类型标识位或消息帧类型 标识位, 以表明该消息帧的发送方对服务消息的支持情况。 当该预设位置 的值与预设的值相匹配时, 判定消息帧的发送方为 NAN 设备; 否则认为 不是 NAN 设备, 若该消息帧的目的地址不是该消息帧的接收方, 则丟弃 该消息帧。  In this technical solution, for example, the device type identifier bit or the message frame type identifier bit may be placed by using the "11" in the type sub-domain and the reserved bit corresponding to "0000" in the sub-type sub-domain. Indicates the support of the sender of the message frame to the service message. When the value of the preset position matches the preset value, it is determined that the sender of the message frame is a NAN device; otherwise, it is considered not to be a NAN device, and if the destination address of the message frame is not the receiver of the message frame, the device is discarded. The message frame.
在上述技术方案中, 优选地, 在所述发现广播消息帧为服务发现广播 消息帧或服务及设备发现广播消息帧的情况下, 所述数据处理模块 204还 从所述发现广播消息帧中获取服务类型标识位, 所述服务类型标识位的值 表示所述发现广播消息帧对应的服务消息类型和 /或服务消息的具体信 息。  In the foregoing technical solution, preferably, in a case that the discovery broadcast message frame is a service discovery broadcast message frame or a service and device discovery broadcast message frame, the data processing module 204 further obtains from the discovery broadcast message frame. A service type identifier bit, where the value of the service type identifier bit indicates specific information of a service message type and/or a service message corresponding to the discovery broadcast message frame.
在该技术方案中, 对于服务发现广播消息帧和服务及设备发现广播消 息帧, 可以直接确定该消息帧的发送方对于服务消息的支持情况, 从而确 定是否连接至该发送方设备。 In this technical solution, for the service discovery broadcast message frame and the service and device discovery broadcast elimination The frame of the message can directly determine the support of the sender of the message frame for the service message to determine whether to connect to the sender device.
在上述技术方案中, 优选地, 所述数据处理模块 204从所述发现广播 消息帧的媒介访问控制帧的帧头部分确定所述服务类型标识位的值。  In the above technical solution, preferably, the data processing module 204 determines a value of the service type identifier bit from a header portion of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 可以利用 MAC 帧的帧头部分的一个或多个预留 位, 来放置该服务类型标识位。 具体地, 比如在 MAC 帧的帧头部分包含 A ( Address ) 1、 A2、 A3域, 其中, Al域用于描述目的地址, A2域用于 描述源地址, 考虑到 NAN 网络的实际特点, 相当于每个 NAN设备独立 的与其它的 NAN设备连接, 而不需要另外设备的辅助, 那么 A3 地址在 NAN网络中是不可能用到的, 那么可以用它来作为 NAN设备的服务类型 标识位。  In this technical solution, the service type identification bit can be placed by using one or more reserved bits of the header portion of the MAC frame. Specifically, for example, the frame header portion of the MAC frame includes A (Address) 1, A2, and A3 fields, where the Al field is used to describe the destination address, and the A2 field is used to describe the source address, considering the actual characteristics of the NAN network, Since each NAN device is independently connected to other NAN devices without the assistance of another device, the A3 address is not available in the NAN network, and then it can be used as the service type identifier of the NAN device.
在上述技术方案中, 优选地, 所述数据处理模块 204从所述发现广播 消息帧的媒介访问控制帧的帧体部分的秩序域中确定所述服务类型标识位 的值。  In the above technical solution, preferably, the data processing module 204 determines the value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 也可以利用 MAC 帧的帧体部分的一个或多个预留 位来放置该服务类型标识位。 具体地, 该预留位可以位于 MAC 帧的帧体 部分的秩序域中, 当然服务类型标识位也可以以信息元素 (IE ) 的形式出 现, 被放置在帧体的某个秩序域中, 例如放置在秩序域 26 , 当然也可以 放置在其它秩序域。  In this technical solution, the service type identifier bit may also be placed by using one or more reserved bits of the frame body portion of the MAC frame. Specifically, the reserved bit may be located in the order domain of the frame body part of the MAC frame. Of course, the service type identifier bit may also appear in the form of an information element (IE), and is placed in an order domain of the frame body, for example Placed in the order domain 26, of course, can also be placed in other order domains.
图 3示出了根据本发明的实施例的无线通信方法的流程图。  FIG. 3 shows a flow chart of a method of wireless communication in accordance with an embodiment of the present invention.
如图 3 所示, 根据本发明的实施例的无线通信方法, 包括: 步骤 302 , 接收发现广播消息帧, 并记录接收时的第一时间点; 步骤 304 , 所 述发现广播消息帧中至少包含所述发现广播消息帧的广播周期和 /或所述 发现广播消息帧被再次发送的第二时间点, 其中, 当所述发现广播消息帧 中仅包含所述广播周期时, 根据所述广播周期计算得到所述第二时间点; 步骤 306, 在所述第一时间点与所述第二时间点之间确定第三时间点, 以 用于发送所述发现广播消息帧的响应消息帧。  As shown in FIG. 3, the wireless communication method according to the embodiment of the present invention includes: Step 302: Receive a discovery broadcast message frame, and record a first time point when receiving; Step 304: The discovery broadcast message frame includes at least a second time point of the broadcast period of the discovery broadcast message frame and/or the discovery broadcast message frame being retransmitted, wherein, when the discovery broadcast message frame only includes the broadcast period, according to the broadcast period Calculating the second time point; Step 306, determining a third time point between the first time point and the second time point, for transmitting the response message frame of the discovery broadcast message frame.
在该技术方案中, 通信设备可以是手机或是平板, 也可以是路由器等 设备, 数据处理模块可以是通信设备中数据处理的芯片模块, 而数据交互 模块则相当于信号收发装置以及天线等。 优选地, 上述通信设备为支持In the technical solution, the communication device may be a mobile phone or a tablet, or may be a device such as a router, and the data processing module may be a chip module for data processing in the communication device, and the data interaction The module is equivalent to a signal transmitting device and an antenna. Preferably, the above communication device is supported
NAN 功能的设备。 在 NAN 网络中, 通信设备在接收到发现广播消息帧 时, 默认处理方式是立即返回响应消息帧, 但这对于发现广播消息帧的发 送方而言, 当返回响应消息帧的设备数量过多时, 可能在发送方造成沖 突, 从而影响到设备间的连接效率。 因此, 通过由设备记录接收到发现广 播消息帧的第一时间点 (假定为 T1 ) ; 同时可以从发现广播消息帧中解 析出发送方再次发送的第二时间点 (假定为 T2 ) , 当然, 一种情况下, 可能直接从发现广播消息帧中解析出 T2 , 另一种情况下, 首先解析得到 上述消息帧的发送周期 (假定为 T ) , 则计算得到第二时间点为 T2=T1+T; 然后, 在 T1 和 Τ2之间选取第三时间点 (假定为 Τ3 ) , 并在 Τ3 发送响应消息帧。 由于各个设备分别选取自身对应的 Τ3 , 因此, 降低 了同一时间发送响应消息帧的概率, 降低或避免了产生沖突的概率, 也有 利于设备间建立连接效率的提高。 NAN-enabled device. In the NAN network, when the communication device receives the discovery broadcast message frame, the default processing method is to immediately return the response message frame, but for the sender of the broadcast message frame, when the number of devices returning the response message frame is too large, It may cause conflicts on the sender, which affects the connection efficiency between devices. Therefore, by receiving, by the device, the first time point of the discovery broadcast message frame is received (assumed to be T1); at the same time, the second time point (assumed to be T2) that the sender transmits again can be parsed from the discovery broadcast message frame, of course, In one case, T2 may be parsed directly from the discovery broadcast message frame. In the other case, the transmission period of the message frame is first parsed (assumed to be T), and the second time point is calculated as T2=T1+ T; Then, select the third time point between T1 and Τ2 (assumed to be Τ3), and send a response message frame at Τ3. Since each device selects its own corresponding Τ3, the probability of sending a response message frame at the same time is reduced, the probability of collision is reduced or avoided, and the connection efficiency between devices is improved.
在上述技术方案中, 优选地, 还包括: 所述第三时间点为随机选取的 时间点。  In the above technical solution, preferably, the method further includes: the third time point is a randomly selected time point.
在该技术方案中, Τ3 是随机选取的, 它的选取方式可以是在 T1 和 Τ2之间选取一个任意的时间点或者是 T1 和 Τ2之间的一段时长, 这个时 长可以是由时间单位 ( Time Unit, TU ) 乘以一定的整数 m得来的, T3的 选取也可以是在 0 至 m之间随机的选取一个整数 n, 然后再乘以 TU得 到, 由于所有需要返回响应消息帧的 T3 时间点都相同的概率非常低, 能 够有效降低或避免了发送消息沖突的概率, 也有利于设备间建立连接效率 的提高。  In this technical solution, Τ3 is randomly selected, and it may be selected by selecting an arbitrary time point between T1 and Τ2 or a period of time between T1 and Τ2, which may be a time unit (Time) Unit, TU) is multiplied by a certain integer m. The choice of T3 can also be randomly selected from 0 to m to select an integer n, and then multiplied by TU, because all the T3 time needed to return the response message frame. The probability that the points are all the same is very low, which can effectively reduce or avoid the probability of sending message conflicts, and also improve the connection efficiency between devices.
在上述技术方案中, 优选地, 还包括: 所述发现广播消息帧为服务发 现广播消息帧、 设备发现广播消息帧或服务及设备发现广播消息帧。  In the above technical solution, preferably, the method further includes: the discovery broadcast message frame is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame.
在该技术方案中, 服务发现广播消息帧中包含服务消息类型, 用于将 发送方所支持的服务类型告知接收到该消息帧的设备。 设备发现广播消息 帧中包含设备类型, 用于将发送方的设备类型告知接收到该消息帧的设 备。 服务及设备发现广播消息帧中则包含服务消息类型和 /或设备类型, 从而将发送方的相关消息告知接收到该消息帧的设备。 在上述技术方案中, 优选地, 在确定所述第三时间点之前, 还包括: 从所述发现广播消息帧中获取时间同步功能参数, 并利用所述时间同步功 能参数与所述发现广播消息帧的发送方进行时间同步。 In the technical solution, the service discovery broadcast message frame includes a service message type, and is used to notify the device that receives the message frame of the service type supported by the sender. The device discovery broadcast message frame includes a device type for informing the device type of the sender that the device type of the sender is received. The service and device discovery broadcast message frame contains the service message type and/or device type, so that the sender's related message informs the device that received the message frame. In the above technical solution, preferably, before determining the third time point, the method further includes: acquiring a time synchronization function parameter from the discovery broadcast message frame, and using the time synchronization function parameter and the discovery broadcast message The sender of the frame performs time synchronization.
在该技术方案中, 由于设备间遵循的时间可能并不同步, 因而通过发 现广播消息帧中的 TSF ( Time Synchronization Function, 时间同步功能参 数) 信息, 实现消息帧的发送方与接收方之间的时间同步, 以利于对 T3 的确定, 避免计算得到的 T3 无法使用 (如大于发现功能消息帧的发送周 期等) 。  In this technical solution, since the time that the devices follow may not be synchronized, the TSF (Time Synchronization Function) information in the broadcast message frame is found, and the sender and the receiver of the message frame are implemented. Time synchronization, in order to facilitate the determination of T3, to avoid the calculation of T3 can not be used (such as greater than the transmission period of the discovery function message frame, etc.).
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧中获取 设备类型标识位或消息帧类型标识位, 所述设备类型标识位或消息帧类型 标识位的值表示所述发现广播消息帧的发送方是否为邻居感知网络设备或 所述发现广播消息帧是否为邻居感知网络消息帧。  In the above technical solution, preferably, the method further includes: acquiring a device type identifier bit or a message frame type identifier bit from the discovery broadcast message frame, where the value of the device type identifier bit or the message frame type identifier bit indicates the discovery Whether the sender of the broadcast message frame is a neighbor aware network device or whether the discovery broadcast message frame is a neighbor aware network message frame.
在该技术方案中, 由广播消息帧的类型有很多, 有些可能并不是发现 广播消息帧, 并不用于 NAN 设备间的发现连接, 因此, 消息帧的发送方 需要标明自身的身份, 即是否为 NAN 设备, 若是, 接收方才会执行解析 该消息帧等操作, 否则无需执行。  In this technical solution, there are many types of broadcast message frames, some may not discover broadcast message frames, and are not used for discovery connections between NAN devices. Therefore, the sender of the message frame needs to indicate its identity, that is, whether it is The NAN device, if it is, the receiver will perform operations such as parsing the message frame, otherwise it will not need to be executed.
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧的媒介 访问控制帧的帧头的帧控制域中确定所述设备类型标识位或消息帧类型标 识位的值。  In the above technical solution, preferably, the method further includes: determining a value of the device type identifier bit or the message frame type identifier bit from a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 可以利用消息帧的 MAC ( Medium Access Control, 媒介访问控制) 帧的帧头的帧控制域中的一个或多个预留位, 来 放置设备类型标识位或消息帧类型标识位, 以表明该消息帧的发送方对服 务消息的支持情况。  In this technical solution, one or more reserved bits in a frame control domain of a frame header of a MAC (Medium Access Control) frame of a message frame may be used to place a device type identifier bit or a message frame type identifier. Bit, to indicate the support of the sender of the message frame for the service message.
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧的媒介 访问控制帧的帧头的帧控制域的类型子域和子类型子域中确定所述设备类 型标识位或消息帧类型标识位的值。  In the foregoing technical solution, preferably, the method further includes: determining, according to a type subfield and a subtype subfield of a frame control field of a frame header of the medium access control frame of the discovery broadcast message frame, the device type identifier bit or a message frame. The value of the type identifier bit.
在该技术方案中, 具体地, 比如可以利用类型子域中的 " 11 " 、 子类 型子域中的 "0000" 对应的预留位, 来放置设备类型标识位或消息帧类型 标识位, 以表明该消息帧的发送方对服务消息的支持情况。 当该预设位置 的值与预设的值相匹配时, 判定消息帧的发送方为 NAN 设备; 否则认为 不是 NAN 设备, 若该消息帧的目的地址不是该消息帧的接收方, 则丟弃 该消息帧。 In this technical solution, for example, the device type identifier bit or the message frame type identifier bit may be placed by using the "11" in the type sub-domain and the reserved bit corresponding to "0000" in the sub-type sub-domain. Indicates the support of the sender of the message frame to the service message. When the preset position When the value matches the preset value, it is determined that the sender of the message frame is a NAN device; otherwise, it is considered not to be a NAN device, and if the destination address of the message frame is not the receiver of the message frame, the message frame is discarded.
在上述技术方案中, 优选地, 当所述发现广播消息帧为服务发现广播 消息帧或服务及设备发现广播消息帧时, 还包括: 从所述发现广播消息帧 中获取服务类型标识位, 所述服务类型标识位的值表示所述发现广播消息 帧对应的服务消息类型和 /或服务消息的具体信息。  In the above technical solution, preferably, when the discovery broadcast message frame is a service discovery broadcast message frame or a service and device discovery broadcast message frame, the method further includes: acquiring a service type identifier bit from the discovery broadcast message frame, where The value of the service type identifier bit indicates the specific information of the service message type and/or the service message corresponding to the discovery broadcast message frame.
在该技术方案中, 对于服务发现广播消息帧和服务及设备发现广播消 息帧, 可以直接确定该消息帧的发送方对于服务消息的支持情况, 从而确 定是否连接至该发送方设备。  In this technical solution, for the service discovery broadcast message frame and the service and device discovery broadcast message frame, the support of the sender of the message frame for the service message can be directly determined to determine whether to connect to the sender device.
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧的媒介 访问控制帧的帧头部分确定所述服务类型标识位的值。  In the above technical solution, preferably, the method further includes: determining a value of the service type identifier bit from a header portion of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 可以利用 MAC 帧的帧头部分的一个或多个预留 位, 来放置该服务类型标识位。 具体地, 比如在 MAC 帧的帧头部分包含 A ( Address ) 1、 A2、 A3域, 其中, Al域用于描述目的地址, A2域用于 描述源地址, 考虑到 NAN 网络的实际特点, 相当于每个 NAN设备独立 的与其它的 NAN设备连接, 而不需要另外设备的辅助, 那么 A3 地址在 NAN网络中是不可能用到的, 那么可以用它来作为 NAN设备的服务类型 标识位。  In this technical solution, the service type identification bit can be placed by using one or more reserved bits of the header portion of the MAC frame. Specifically, for example, the frame header portion of the MAC frame includes A (Address) 1, A2, and A3 fields, where the Al field is used to describe the destination address, and the A2 field is used to describe the source address, considering the actual characteristics of the NAN network, Since each NAN device is independently connected to other NAN devices without the assistance of another device, the A3 address is not available in the NAN network, and then it can be used as the service type identifier of the NAN device.
在上述技术方案中, 优选地, 还包括: 从所述发现广播消息帧的媒介 访问控制帧的帧体部分的秩序域中确定所述服务类型标识位的值。  In the above technical solution, preferably, the method further includes: determining a value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
在该技术方案中, 也可以利用 MAC 帧的帧体部分的一个或多个预留 位来放置该服务类型标识位。 具体地, 该预留位可以位于 MAC 帧的帧体 部分的秩序域中, 当然服务类型标识位也可以以信息元素 (IE ) 的形式出 现, 被放置在帧体的某个秩序域中, 例如放置在秩序域 26 , 当然也可以 放置在其它秩序域。  In this technical solution, the service type identifier bit may also be placed by using one or more reserved bits of the frame body portion of the MAC frame. Specifically, the reserved bit may be located in the order domain of the frame body part of the MAC frame. Of course, the service type identifier bit may also appear in the form of an information element (IE), and is placed in an order domain of the frame body, for example Placed in the order domain 26, of course, can also be placed in other order domains.
图 4示出了根据本发明的实施例的对发现广播消息帧的具体处理流程 图。  4 shows a detailed process flow diagram for discovering broadcast message frames in accordance with an embodiment of the present invention.
如图 4所示, 根据本发明的实施例的对发现广播消息帧的具体处理流 程包括: As shown in FIG. 4, a specific processing flow for discovering a broadcast message frame according to an embodiment of the present invention The process includes:
步骤 402, 假定设备 A为发现广播消息帧的发送方, 设备 B是接收到 该发现广播消息帧的某一个设备, 即此处以设备 B的处理过程为例, 其他 接收到上述发现广播消息帧的设备也可以按照相同的步骤和方式进行处 理。 其中, 设备 A、 设备 B以及其他设备为 NAN设备。  Step 402, assuming that the device A is the sender of the discovery broadcast message frame, and the device B is the device that receives the discovery broadcast message frame, that is, the process of the device B is taken as an example here, and the other received the broadcast message frame of the discovery is received. The device can also be processed in the same steps and manner. Among them, device A, device B, and other devices are NAN devices.
步骤 404, 设备 B 判断发现广播消息帧是否为 NAN 消息帧。 具体 地, 比如可以通过对发现广播消息帧的 MAC 帧的帧头部分的类型子域和 子类型子域的联合值来进行判断。 若判断为是, 则进入步骤 406, 否则进 入步骤 412。  Step 404: Device B determines whether the broadcast message frame is a NAN message frame. Specifically, for example, it may be judged by a joint value of a type subfield and a subtype subfield of a header portion of a MAC frame in which a broadcast message frame is found. If the determination is yes, then go to step 406, otherwise go to step 412.
步骤 406, 设备 B判断发现广播消息帧是否为自身所需要的类型。 当 然, 需要说明的是, 发现广播消息帧具体可以为服务发现广播消息帧、 设 备发现广播消息帧或服务及设备发现广播消息帧, 其中, 服务发现广播消 息帧中包含服务消息类型, 用于将设备 A所支持的服务类型告知设备 B。 设备发现广播消息帧中包含设备类型, 用于将设备 A的设备类型告知设备 B。 服务及设备发现广播消息帧中则包含服务消息类型和 /或设备类型, 从 而将设备 A的相关消息告知设备 B。  Step 406: The device B determines whether the broadcast message frame is found to be of a type required by itself. Certainly, it should be noted that the broadcast message frame may be specifically a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame, where the service discovery broadcast message frame includes a service message type, and is used to Device B is notified of the type of service supported by device A. The device discovery broadcast message frame contains the device type, which is used to inform device B of the device type of device A. The service and device discovery broadcast message frame contains the service message type and/or device type, so that device A related message is notified to device B.
可见, 当设备 B接收到的发现广播消息帧为服务发现广播消息帧或服 务及设备发现广播消息帧时, 需要执行步骤 406; 而当当设备 B接收到的 发现广播消息帧为设备发现广播消息帧时, 则无需执行步骤 406, 直接由 步骤 404进入步骤 408。  It can be seen that when the discovery broadcast message frame received by the device B is a service discovery broadcast message frame or a service and device discovery broadcast message frame, step 406 needs to be performed; and when the discovery broadcast message frame received by the device B is a device discovery broadcast message frame. At that time, step 406 need not be performed, and step 404 is directly entered into step 408.
具体地, 当设备 B对接收到的发现广播消息帧的类型进行判断时, 可 以通过解析出该消息帧的帧头部分的某个子域(如 A3、 A4域) 或帧体部 分的某个子域 (如某个秩序域) 中包含的服务消息类型标识, 从而确定设 备 A 所支持的服务消息的类型和 /或服务消息的内容。 其中, 若类型正 确, 则进入步骤 408, 否则进入步骤 412。  Specifically, when device B determines the type of the received discovery broadcast message frame, it may parse out a certain sub-domain (such as A3, A4 domain) or a sub-domain of the frame body part of the frame header portion of the message frame. The service message type identifier contained in (such as a certain order domain) determines the type of service message supported by device A and/or the content of the service message. If the type is correct, the process proceeds to step 408; otherwise, the process proceeds to step 412.
步骤 408, 确定设备 B 接收到发现广播消息帧的时间点 T1 ; 从接收 到的发现广播消息帧中解析出该消息帧被再次发送的时间点 T2 , 或者解 析出该消息帧的发送周期, 并根据该发送周期计算得到 T2; 在 T1 和 T2 之间确定时间点 T3 , 具体地, 可以通过在 T1 和 T2之间进行随机选取, 从而降低多个设备选择到相同的 T3时间点的概率, 有效避免在设备 A 出 现消息沖突。 Step 408, determining that the device B receives the time point T1 of discovering the broadcast message frame, parsing out the time point T2 at which the message frame is retransmitted from the received discovery broadcast message frame, or parsing the sending period of the message frame, and Calculating T2 according to the transmission period; determining a time point T3 between T1 and T2, specifically, by randomly selecting between T1 and T2, Thereby reducing the probability that multiple devices are selected to the same T3 time point, effectively avoiding message conflicts on device A.
需要说明的是, 设备 A 和设备 B 可能在时间上并不同步, 因而可以 在发现广播消息帧中设置 TSF信息, 并由设备 B在确定 T3之前, 根据该 TSF信息与设备 A之间进行同步, 以确保时间点的准确性和可实施性。  It should be noted that device A and device B may not be synchronized in time, so TSF information may be set in the discovery broadcast message frame, and device B may synchronize with device A according to the TSF information before determining T3. To ensure the accuracy and enforceability of the point in time.
步骤 410, 设备 B 在 T3 发送接收到的发现广播消息帧的响应消息 帧。  Step 410: Device B sends a response message frame of the received discovery broadcast message frame at T3.
步骤 412 , 设备 B丟弃接收到的发现广播消息帧。  Step 412: Device B discards the received discovery broadcast message frame.
以上结合附图详细说明了本发明的技术方案, 本申请提出了一种通信 设备和一种无线通信方法, 使得接收到发现广播消息帧的设备各自确定对 应的时间点来返回响应消息帧, 降低了现有技术中设备均立即发送响应消 息帧造成沖突的概率, 有利于设备间建立连接效率的提高。  The technical solution of the present invention is described in detail above with reference to the accompanying drawings. The present application provides a communication device and a wireless communication method, so that devices that receive a broadcast broadcast message frame respectively determine a corresponding time point to return a response message frame, and reduce In the prior art, the probability that the device immediately sends a response message frame to cause a collision is beneficial to improve the connection efficiency between devices.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于 本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精 神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明 的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权 利 要 求 书 Claim
1. 一种通信设备, 其特征在于, 包括: A communication device, comprising:
数据交互模块, 接收发现广播消息帧, 并发送所述发现广播消息帧的 响应消息帧, 其中, 所述发现广播消息帧在第一时间点被接收, 且所述发 现广播消息帧中至少包含所述发现广播消息帧的广播周期和 /或所述发现 广播消息帧被再次发送的第二时间点;  a data interaction module, configured to receive a discovery broadcast message frame, and send a response message frame of the discovery broadcast message frame, where the discovery broadcast message frame is received at a first time point, and the discovery broadcast message frame includes at least Determining a broadcast period of the broadcast message frame and/or a second time point at which the discovery broadcast message frame is transmitted again;
数据处理模块, 记录所述第一时间点, 获取所述第二时间点或在所述 发现广播消息帧中仅包含所述广播周期的情况下, 根据所述广播周期计算 得到所述第二时间点, 并在所述第一时间点与所述第二时间点之间确定第 三时间点, 以用于所述数据交互模块发送所述响应消息帧。  a data processing module, when the first time point is recorded, the second time point is acquired, or the broadcast period is included in the discovery broadcast message frame, and the second time is calculated according to the broadcast period Pointing, and determining a third time point between the first time point and the second time point for the data interaction module to send the response message frame.
2. 根据权利要求 1 所述的通信设备, 其特征在于, 所述第三时间点 是所述数据处理模块随机选取的时间点。  2. The communication device according to claim 1, wherein the third time point is a time point randomly selected by the data processing module.
3. 根据权利要求 1 所述的通信设备, 其特征在于, 所述数据交互模 块接收到的所述发现广播消息帧为服务发现广播消息帧、 设备发现广播消 息帧或服务及设备发现广播消息帧。  The communication device according to claim 1, wherein the discovery broadcast message frame received by the data interaction module is a service discovery broadcast message frame, a device discovery broadcast message frame, or a service and device discovery broadcast message frame. .
4. 根据权利要求 1 所述的通信设备, 其特征在于, 所述数据处理模 块在确定所述第三时间点之前, 还从所述发现广播消息帧中获取时间同步 功能参数, 并利用所述时间同步功能参数与所述发现广播消息帧的发送方 进行时间同步。  The communication device according to claim 1, wherein the data processing module further acquires a time synchronization function parameter from the discovery broadcast message frame before determining the third time point, and uses the The time synchronization function parameter is time synchronized with the sender of the discovery broadcast message frame.
5. 根据权利要求 1 所述的通信设备, 其特征在于, 所述数据处理模 块还从所述发现广播消息帧中获取设备类型标识位或消息帧类型标识位, 所述设备类型标识位或消息帧类型标识位的值表示所述发现广播消息帧的 发送方是否为邻居感知网络设备或所述发现广播消息帧是否为邻居感知网 络消息帧。  The communication device according to claim 1, wherein the data processing module further acquires a device type identifier bit or a message frame type identifier bit, the device type identifier bit or a message from the discovery broadcast message frame. The value of the frame type identification bit indicates whether the sender of the discovery broadcast message frame is a neighbor aware network device or whether the discovery broadcast message frame is a neighbor aware network message frame.
6. 根据权利要求 5 所述的通信设备, 其特征在于, 所述数据处理模 块从所述发现广播消息帧的媒介访问控制帧的帧头的帧控制域中确定所述 设备类型标识位或消息帧类型标识位的值。 6. The communication device according to claim 5, wherein the data processing module determines the device type identifier bit or message from a frame control field of a frame header of a medium access control frame of the discovery broadcast message frame. The value of the frame type flag.
7. 根据权利要求 6 所述的通信设备, 其特征在于, 所述数据处理模 块从所述发现广播消息帧的媒介访问控制帧的帧头的帧控制域的类型子域 和子类型子域中确定所述设备类型标识位或;肖息帧类型标识位的值。 7. The communication device according to claim 6, wherein the data processing module determines from a type subfield and a subtype subfield of a frame control field of a frame header of a medium access control frame of the discovery broadcast message frame. The device type identifier bit or the value of the frame type identifier bit.
8. 根据权利要求 1 至 7 中任一项所述的通信设备, 其特征在于, 在 所述发现广播消息帧为服务发现广播消息帧或服务及设备发现广播消息帧 的情况下, 所述数据处理模块还从所述发现广播消息帧中获取服务类型标 识位, 所述服务类型标识位的值表示所述发现广播消息帧对应的服务消息 类型和 /或服务消息的具体信息。  The communication device according to any one of claims 1 to 7, wherein, in the case that the discovery broadcast message frame is a service discovery broadcast message frame or a service and device discovery broadcast message frame, the data The processing module further obtains a service type identifier bit from the discovery broadcast message frame, where the value of the service type identifier bit indicates specific information of a service message type and/or a service message corresponding to the discovery broadcast message frame.
9. 根据权利要求 8 所述的通信设备, 其特征在于, 所述数据处理模 块从所述发现广播消息帧的媒介访问控制帧的帧头部分确定所述服务类型 标识位的值。  9. The communication device of claim 8, wherein the data processing module determines a value of the service type identification bit from a header portion of a medium access control frame of the discovery broadcast message frame.
10. 根据权利要求 8所述的通信设备, 其特征在于, 所述数据处理模 块从所述发现广播消息帧的媒介访问控制帧的帧体部分的秩序域中确定所 述服务类型标识位的值。  10. The communication device according to claim 8, wherein the data processing module determines a value of the service type identification bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame. .
11. 一种无线通信方法, 其特征在于, 包括;  11. A method of wireless communication, comprising:
接收发现广播消息帧, 并记录接收时的第一时间点;  Receiving a discovery broadcast message frame, and recording the first time point when receiving;
所述发现广播消息帧中至少包含所述发现广播;;肖 , 帧的广播周期和 I 或所述发现广播消息帧被再次发送的第二时间点, 其中, 当所述发现广播 消息帧中仅包含所述广播周期时, 根据所述广播周期计算得到所述第二时 间点;  The discovery broadcast message frame includes at least the discovery broadcast; Shaw, a broadcast period of the frame and a second time point when the discovery broadcast message frame is retransmitted, wherein, when the discovery broadcast message frame is only When the broadcast period is included, calculating the second time point according to the broadcast period;
在所述第一时间点与所述第二时间点之间确定第三时间点, 以用于发 送所述发现广播消息帧的响应消息帧。  A third time point is determined between the first time point and the second time point for transmitting a response message frame of the discovery broadcast message frame.
12. 根据权利要求 11 所述的无线通信方法, 其特征在于, 还包括: 所述第三时间点为随机选取的时间点。  The wireless communication method according to claim 11, further comprising: the third time point being a randomly selected time point.
13. 根据权利要求 11 所述的无线通信方法, 其特征在于, 还包括: 所述发现广播消息帧为服务发现广播消息帧、 设备发现广播消息帧或服务 及设备发现广播消息帧。  The wireless communication method according to claim 11, further comprising: the discovery broadcast message frame is a service discovery broadcast message frame, a device discovery broadcast message frame or a service and a device discovery broadcast message frame.
14. 根据权利要求 11 所述的无线通信方法, 其特征在于, 在确定所 述第三时间点之前, 还包括: 从所述发现广播消息帧中获取时间同步功能参数, 并利用所述时间同 步功能参数与所述发现广播消息帧的发送方进行时间同步。 The wireless communication method according to claim 11, wherein before determining the third time point, the method further includes: Obtaining a time synchronization function parameter from the discovery broadcast message frame, and performing time synchronization with a sender of the discovery broadcast message frame by using the time synchronization function parameter.
15. 根据权利要求 11所述的无线通信方法, 其特征在于, 还包括: 从所述发现广播消息帧中获取设备类型标识位或消息帧类型标识位, 所述设备类型标识位或消息帧类型标识位的值表示所述发现广播消息帧的 发送方是否为邻居感知网络设备或所述发现广播消息帧是否为邻居感知网 络消息帧。  The wireless communication method according to claim 11, further comprising: acquiring a device type identifier bit or a message frame type identifier bit, the device type identifier bit or a message frame type from the discovery broadcast message frame. The value of the identification bit indicates whether the sender of the discovery broadcast message frame is a neighbor aware network device or whether the discovery broadcast message frame is a neighbor aware network message frame.
16. 根据权利要求 15所述的无线通信方法, 其特征在于, 还包括: 从所述发现广播消息帧的媒介访问控制帧的帧头的帧控制域中确定所 述设备类型标识位或消息帧类型标识位的值。  16. The wireless communication method according to claim 15, further comprising: determining the device type identification bit or message frame from a frame control field of a frame header of a medium access control frame of the discovery broadcast message frame. The value of the type identifier bit.
17. 根据权利要求 16所述的无线通信方法, 其特征在于, 还包括: 从所述发现广播消 , 帧的媒介访问控制帧的帧头的帧控制域的类型子 域和子类型子域中确定所述设备类型标识位或消息帧类型标识位的值。  The wireless communication method according to claim 16, further comprising: determining, from the discovery broadcast cancellation, a type subfield and a subtype subfield of a frame control field of a frame header of a medium access control frame of the frame The value of the device type identifier bit or the message frame type identifier bit.
18. 根据权利要求 11至 17中任一项所述的无线通信方法, 其特征在 于, 当所述发现广播消息帧为服务发现广播消息帧或服务及设备发现广播 消息帧时, 还包括:  The wireless communication method according to any one of claims 11 to 17, wherein when the discovery broadcast message frame is a service discovery broadcast message frame or a service and device discovery broadcast message frame, the method further includes:
从所述发现广播消息帧中获取服务类型标识位, 所述服务类型标识位 的值表示所述发现广播消息帧对应的服务消息类型和 /或服务消息的具体 信息。  Obtaining a service type identifier bit from the discovery broadcast message frame, where the value of the service type identifier bit indicates specific information of a service message type and/or a service message corresponding to the discovery broadcast message frame.
19. 根据权利要求 18所述的无线通信方法, 其特征在于, 还包括: 从所述发现广播消息帧的媒介访问控制帧的帧头部分确定所述服务类 型标识位的值。  19. The method of wireless communication of claim 18, further comprising: determining a value of the service type identification bit from a header portion of a medium access control frame of the discovery broadcast message frame.
20. 根据权利要求 18所述的无线通信方法, 其特征在于, 还包括: 从所述发现广播消息帧的媒介访问控制帧的帧体部分的秩序域中确定 所述服务类型标识位的值。  The wireless communication method according to claim 18, further comprising: determining a value of the service type identifier bit from an order domain of a frame body portion of the medium access control frame of the discovery broadcast message frame.
PCT/CN2013/076228 2013-05-24 2013-05-24 Communication device and wireless communication method WO2014186985A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/076228 WO2014186985A1 (en) 2013-05-24 2013-05-24 Communication device and wireless communication method
CN201380062726.1A CN104854954A (en) 2013-05-24 2013-05-24 Communication device and wireless communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/076228 WO2014186985A1 (en) 2013-05-24 2013-05-24 Communication device and wireless communication method

Publications (1)

Publication Number Publication Date
WO2014186985A1 true WO2014186985A1 (en) 2014-11-27

Family

ID=51932740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/076228 WO2014186985A1 (en) 2013-05-24 2013-05-24 Communication device and wireless communication method

Country Status (2)

Country Link
CN (1) CN104854954A (en)
WO (1) WO2014186985A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660976A (en) * 2018-12-20 2019-04-19 广州河东科技有限公司 Method, device, system and storage medium for device search

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101461264A (en) * 2006-06-06 2009-06-17 松下电器产业株式会社 Radio communication system, radio terminal, base station, and base station search method
CN101626303A (en) * 2008-07-09 2010-01-13 华为技术有限公司 Method, system and device for sending data
CN102291802A (en) * 2011-08-04 2011-12-21 北京新岸线移动多媒体技术有限公司 Communication method and device
CN102892105A (en) * 2012-10-31 2013-01-23 东莞宇龙通信科技有限公司 Communication device and data communication method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529565B2 (en) * 2004-04-08 2009-05-05 Starkey Laboratories, Inc. Wireless communication protocol
CN101047470A (en) * 2006-05-17 2007-10-03 华为技术有限公司 Allocation method for forward error correction function in passive optical network
EP2289266B1 (en) * 2008-06-04 2015-01-14 Philips Intellectual Property & Standards GmbH A network interface unit for a node in a wireless multi-hop network, and a method of establishing a network path between nodes in a wireless multi-hop network.
US7864045B2 (en) * 2008-09-12 2011-01-04 Roundtrip Llc Locator inventory system
US10397823B2 (en) * 2010-10-01 2019-08-27 Signify Holding B.V. Device and method for scheduling data packet transmission in wireless networks
CN102821466B (en) * 2012-09-06 2016-05-04 东莞宇龙通信科技有限公司 Data communication equipment and data communications method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101461264A (en) * 2006-06-06 2009-06-17 松下电器产业株式会社 Radio communication system, radio terminal, base station, and base station search method
CN101626303A (en) * 2008-07-09 2010-01-13 华为技术有限公司 Method, system and device for sending data
CN102291802A (en) * 2011-08-04 2011-12-21 北京新岸线移动多媒体技术有限公司 Communication method and device
CN102892105A (en) * 2012-10-31 2013-01-23 东莞宇龙通信科技有限公司 Communication device and data communication method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660976A (en) * 2018-12-20 2019-04-19 广州河东科技有限公司 Method, device, system and storage medium for device search
CN109660976B (en) * 2018-12-20 2021-09-14 广州河东科技有限公司 Method, device, system and storage medium for device search

Also Published As

Publication number Publication date
CN104854954A (en) 2015-08-19

Similar Documents

Publication Publication Date Title
US9277399B2 (en) Systems and methods for reduced latency when establishing communication with a wireless communication system
US9386423B2 (en) Apparatus and methods for access identifier based multicast communication
JP5607842B2 (en) Method and apparatus for paging in machine-to-machine or mobile assisted deployment
JP2018067958A (en) Method and device for establishing peer-to-peer communication
JP6698771B2 (en) System and method for effective access point discovery
WO2015109840A1 (en) Sending/receiving method and device for device-to-device broadcast information, and transmission system
WO2019153911A1 (en) Data transmission method, device and computer storage medium
CN107787018B (en) Communication method, device and system
KR20080045989A (en) Method for processing control message in wireless mesh network and apparatus thereof
JP2009027645A (en) Radio communication device
US20130308530A1 (en) System and Method for Reducing Signaling Overhead
JP5192201B2 (en) Wireless communication system and method
JP2013118499A (en) Radio terminal, emergency information distribution system and program
US9413601B2 (en) Channel reuse among communication networks sharing a communication channel
WO2014186985A1 (en) Communication device and wireless communication method
WO2014146440A1 (en) Service discovery method, access point, and station
WO2014179963A1 (en) Service processing method and apparatus
JP5208162B2 (en) COMMUNICATION SYSTEM, RELAY STATION DEVICE, RECEPTION STATION DEVICE, AND COMMUNICATION METHOD AND PROGRAM THEREOF
CN107637047B (en) Aggregating targets and exploring queries
JP6415949B2 (en) Wireless communication device
US10491512B2 (en) Supporting packet query-response transactions at lower layer
JP2020167590A (en) Communication device, communication system, communication method, and program
JP2020178194A (en) Wireless communication system and wireless communication method
Uemura An efficient multicasting method without a base station
JP2003188917A (en) Method, device and program for broadcast transmission

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: 13885083

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 1205A DATED 28.04.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 13885083

Country of ref document: EP

Kind code of ref document: A1